-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathconfig.vim
44 lines (37 loc) · 1.07 KB
/
config.vim
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
" Remove any default mappings {{{
" }}}
" Set the key mappings for the various commands {{{
au FileType rust let g:lmap.m = { "name": "major-mode-cmd",
\}
" }}}
" Layer specific configurations {{{
let g:sp_format_on_save = get(g:, 'spFormatOnSave', 1)
" Set the default indentation for the language
SpSpaceIndent 'rust', 4
if SpaceNeovimIsLayerEnabled('+completion/coc')
" Configure coc.nvim
if g:spCocHoverInfo
augroup RustCocHoverBehaviour
au!
" Show documentation on hover.
au CursorHold *.rs silent SpCocHover
augroup end
endif
if g:sp_format_on_save
augroup RustCocFormatBehaviour
au!
" Setup formatexpr specified filetype(s).
au FileType rust setl formatexpr=CocAction('formatSelected')
augroup end
endif
endif
if SpaceNeovimIsLayerEnabled('+completion/deoplete')
" Configure deoplete
endif
if SpaceNeovimIsLayerEnabled('+checkers/neomake')
" Configure neomake
endif
if SpaceNeovimIsLayerEnabled('+checkers/syntastic')
" Configure syntastic
endif
" }}}