Merge pull request #3 from suessflorian/master
Add minimal support for golang development
This commit is contained in:
commit
8bf6a8e3e9
1 changed files with 8 additions and 0 deletions
|
@ -8,6 +8,7 @@ Plug 'chrisbra/sudoedit.vim'
|
||||||
Plug 'vim-syntastic/syntastic'
|
Plug 'vim-syntastic/syntastic'
|
||||||
Plug 'mtscout6/syntastic-local-eslint.vim'
|
Plug 'mtscout6/syntastic-local-eslint.vim'
|
||||||
Plug 'editorconfig/editorconfig-vim'
|
Plug 'editorconfig/editorconfig-vim'
|
||||||
|
Plug 'fatih/vim-go'
|
||||||
|
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
|
@ -75,3 +76,10 @@ let g:syntastic_rust_checkers = ['rustc']
|
||||||
" python host paths
|
" python host paths
|
||||||
let g:python_host_prog = '/usr/bin/python2'
|
let g:python_host_prog = '/usr/bin/python2'
|
||||||
let g:python3_host_prog = '/usr/bin/python'
|
let g:python3_host_prog = '/usr/bin/python'
|
||||||
|
|
||||||
|
" golang support preferences
|
||||||
|
let g:go_def_mode = 'gopls'
|
||||||
|
let g:go_fmt_command = "goimports"
|
||||||
|
let g:go_def_mapping_enabled = 1 " hijacks gd
|
||||||
|
|
||||||
|
nnoremap <leader>gd :GoDocBrowser<CR>
|
||||||
|
|
Loading…
Reference in a new issue