Add Go integration to vim config

This commit is contained in:
George Rawlinson 2016-12-18 19:40:28 +13:00
parent e22b5ee627
commit 0f5dc8b758
2 changed files with 12 additions and 0 deletions

View File

@ -12,6 +12,7 @@ set mail_check = 0 # mbsync used for mail synchronisation
set timeout = 5 # wait 5s for user input
set sleep_time = 0 # disable pausing
set beep_new # beep when new mail received
#set nomark_old # don't mark unread new msgs as old
# mailbox
set mbox_type = Maildir # mailbox format

View File

@ -10,6 +10,7 @@ Plug 'chrisbra/sudoedit.vim'
Plug 'scrooloose/nerdtree'
Plug 'scrooloose/nerdcommenter'
Plug 'vim-syntastic/syntastic'
Plug 'fatih/vim-go'
call plug#end()
@ -67,4 +68,14 @@ let g:syntastic_check_on_wq = 0
let g:syntastic_c_checkers = ['gcc', 'cppcheck']
let g:syntastic_cpp_checkers = ['gcc', 'cppcheck']
let g:syntastic_javascript_checkers = ['eslint']
let g:syntastic_go_checkers = ['golint', 'govet', 'errcheck']
let g:syntastic_mode_map = { 'mode': 'active', 'passive_filetypes': ['go'] }
" vim-go
let g:go_highlight_functions = 1
let g:go_highlight_methods = 1
let g:go_highlight_fields = 1
let g:go_highlight_types = 1
let g:go_highlight_operators = 1
let g:go_highlight_build_constraints = 1
let g:go_list_type = "quickfix"