mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-24 02:10:05 +08:00
Merge pull request #168 from phacops/pm-enable-neosnippet-for-go
Enable neosnippet for go
This commit is contained in:
commit
7a3deec25e
@ -16,6 +16,8 @@ function! SpaceVim#layers#lang#go#config() abort
|
|||||||
let g:go_fmt_command = 'goimports'
|
let g:go_fmt_command = 'goimports'
|
||||||
let g:syntastic_go_checkers = ['golint', 'govet', 'errcheck']
|
let g:syntastic_go_checkers = ['golint', 'govet', 'errcheck']
|
||||||
let g:syntastic_mode_map = { 'mode': 'active', 'passive_filetypes': ['go'] }
|
let g:syntastic_mode_map = { 'mode': 'active', 'passive_filetypes': ['go'] }
|
||||||
|
let g:go_snippet_engine = "neosnippet"
|
||||||
|
|
||||||
augroup SpaceVim_go
|
augroup SpaceVim_go
|
||||||
au!
|
au!
|
||||||
au FileType go nmap <Buffer><Leader>s <Plug>(go-implements)
|
au FileType go nmap <Buffer><Leader>s <Plug>(go-implements)
|
||||||
|
Loading…
Reference in New Issue
Block a user