Add golang vim config

This commit is contained in:
David Todd 2021-01-11 12:23:10 -06:00
parent c497d410e9
commit d72a8c9fa2

View File

@ -38,5 +38,20 @@ set clipboard=unnamedplus
" Tabs are 4 spaces wide " Tabs are 4 spaces wide
set tabstop=8 softtabstop=0 expandtab shiftwidth=4 smarttab set tabstop=8 softtabstop=0 expandtab shiftwidth=4 smarttab
" Golang Specific stuff
" Go syntax highlighting
let g:go_highlight_fields = 1
let g:go_highlight_functions = 1
let g:go_highlight_function_calls = 1
let g:go_highlight_extra_types = 1
let g:go_highlight_operators = 1
" Auto formatting and importing
let g:go_fmt_autosave = 1
let g:go_fmt_command = "goimports"
" Status line types/signatures
let g:go_auto_type_info = 1
execute pathogen#infect() execute pathogen#infect()
filetype plugin indent on filetype plugin indent on