1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 00:50:05 +08:00

Add lang/go layer

This commit is contained in:
wsdjeg 2017-01-15 23:04:59 +08:00
parent c6132d4134
commit 23b050a0f2
2 changed files with 12 additions and 1 deletions

View File

@ -28,7 +28,6 @@ function! SpaceVim#layers#lang#plugins() abort
\ ['isundil/vim-irssi-syntax', { 'on_ft' : 'irssi'}],
\ ['lervag/vimtex', { 'on_ft' : 'tex'}],
\ ['vimperator/vimperator.vim', { 'on_ft' : 'vimperator'}],
\ ['fatih/vim-go', { 'on_ft' : 'go', 'loadconf_before' : 1}],
\ ['rust-lang/rust.vim', {'merged' : 1}],
\ ]
" python

View 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