-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.spacevim
More file actions
111 lines (94 loc) · 3.25 KB
/
.spacevim
File metadata and controls
111 lines (94 loc) · 3.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
" Comment the following line if you don't want Vim and NeoVim to share the
" same plugin download directory.
let g:spacevim_plug_home = '~/.my_vim/plugged'
" Uncomment the following line to override the leader key. The default value is space key "<\Space>".
" let g:spacevim_leader = "<\Space>"
" Uncomment the following line to override the local leader key. The default value is comma ','.
" let g:spacevim_localleader = ','
" Enable the existing layers in space-vim.
" Refer to https://github.com/liuchengxu/space-vim/blob/master/layers/LAYERS.md for all available layers.
let g:spacevim_layers = [
\ 'better-defaults',
\ 'syntax-checking',
\ 'c-c++',
\ 'git',
\ 'fzf',
\ 'file-manager',
\ 'python',
\ 'java',
\ 'javascript',
\ 'go',
\ 'programming',
\ 'editing',
\ 'formatting',
\ 'tmux',
\ 'docker',
\ 'ctags',
\ 'text-align',
\ 'better-motion',
\ 'lightline'
\ ]
" Uncomment the following line if your terminal(-emulator) supports true colors.
let g:spacevim_enable_true_color = 1
let g:spacevim_lsp_engine = 'vim_lsp'
let g:spacevim_enable_clap = 1
" Uncomment the following if you have some nerd font installed.
let g:spacevim_nerd_fonts = 1
" If you want to have more control over the layer, try using Layer command.
"kif g:spacevim.gui
" Layer 'airline'
" endif
" Manage your own plugins.
" Refer to https://github.com/junegunn/vim-plug for more detials.
function! UserInit()
" Add your own plugin via Plug command.
" Plug 'preservim/nerdtree'
Plug 'junegunn/seoul256.vim'
Plug 'voldikss/vim-floaterm'
" Plug 'ryanoasis/vim-devicons'
" Plug 'Yggdroot/LeaderF', {'do': './install.sh'}
Plug 'prabirshrestha/async.vim'
Plug 'prabirshrestha/vim-lsp'
Plug 'mattn/vim-lsp-settings'
Plug 'prabirshrestha/asyncomplete.vim'
Plug 'prabirshrestha/asyncomplete-lsp.vim'
Plug 'morhetz/gruvbox'
" Plug 'roman/golden-ratio'
Plug 'camspiers/animate.vim'
Plug 'camspiers/lens.vim'
" Plug 'pechorin/any-jump.nvim'
" Plug 'dylanaraps/fff.vim'
" Plug 'francoiscabrol/ranger.vim'
" Plug 'voldikss/vim-floaterm'
" Plug 'neoclide/coc.nvim', {'branch': 'release'}
endfunction
" Override the default settings from space-vim as well as adding extras
function! UserConfig()
" Override the default settings.
" Uncomment the following line to disable relative number.
" set norelativenumber
" Adding extras.
" Uncomment the following line If you have installed the powerline fonts.
" It is good for airline layer.
" let g:airline_powerline_fonts = 1
let g:Lf_PreviewInPopup = 1
let g:Lf_tagsAutoGenerate = 1
let g:lightline = {
\ 'colorscheme': 'one',
\}
let g:clap_theme = 'material_design_dark'
nnoremap <leader>bb :Clap buffers<CR>
nnoremap <leader>fl :Clap blines<CR>
nnoremap <leader>ss :Clap grep<CR>
nnoremap <leader>lc :Clap command<CR>
nnoremap <leader>ff :Clap files<CR>
nnoremap <leader>fj :Clap filer<CR>
nnoremap <leader>fr :Clap history<CR>
nnoremap <silent><leader>ft :NERDTreeToggle<CR>
nnoremap gd :LspDefinition<CR>
inoremap fd <ESC>
colorscheme gruvbox
set clipboard+=unnamedplus
let g:lsp_diagnostics_enabled = 0
let g:lens#disabled_filetypes = ['nerdtree', 'fzf']
endfunction