Merge pull request #3 from suessflorian/master

Add minimal support for golang development
This commit is contained in:
George Rawlinson 2019-10-02 09:36:05 +13:00 committed by GitHub
commit 8bf6a8e3e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -8,6 +8,7 @@ Plug 'chrisbra/sudoedit.vim'
Plug 'vim-syntastic/syntastic'
Plug 'mtscout6/syntastic-local-eslint.vim'
Plug 'editorconfig/editorconfig-vim'
Plug 'fatih/vim-go'
call plug#end()
@ -75,3 +76,10 @@ let g:syntastic_rust_checkers = ['rustc']
" python host paths
let g:python_host_prog = '/usr/bin/python2'
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>