mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-09 09:40:04 +08:00
Add lang/go layer
This commit is contained in:
parent
c6132d4134
commit
23b050a0f2
@ -28,7 +28,6 @@ function! SpaceVim#layers#lang#plugins() abort
|
|||||||
\ ['isundil/vim-irssi-syntax', { 'on_ft' : 'irssi'}],
|
\ ['isundil/vim-irssi-syntax', { 'on_ft' : 'irssi'}],
|
||||||
\ ['lervag/vimtex', { 'on_ft' : 'tex'}],
|
\ ['lervag/vimtex', { 'on_ft' : 'tex'}],
|
||||||
\ ['vimperator/vimperator.vim', { 'on_ft' : 'vimperator'}],
|
\ ['vimperator/vimperator.vim', { 'on_ft' : 'vimperator'}],
|
||||||
\ ['fatih/vim-go', { 'on_ft' : 'go', 'loadconf_before' : 1}],
|
|
||||||
\ ['rust-lang/rust.vim', {'merged' : 1}],
|
\ ['rust-lang/rust.vim', {'merged' : 1}],
|
||||||
\ ]
|
\ ]
|
||||||
" python
|
" python
|
||||||
|
12
autoload/SpaceVim/layers/lang/go.vim
Normal file
12
autoload/SpaceVim/layers/lang/go.vim
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
function! SpaceVim#layers#lang#go#plugins() abort
|
||||||
|
if has('nvim')
|
||||||
|
return ['zchee/deoplete-go', {'on_ft' : 'go'}]
|
||||||
|
else
|
||||||
|
return ['fatih/vim-go', { 'on_ft' : 'go', 'loadconf_before' : 1}]
|
||||||
|
endif
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
|
||||||
|
function! SpaceVim#layers#lang#go#config() abort
|
||||||
|
|
||||||
|
endfunction
|
Loading…
Reference in New Issue
Block a user