Browse Source

Change gofmt to goimports for the vim-go format command so imports are formatted correctly as well

Taylor Bockman 7 years ago
parent
commit
3fd8e705fa
  1. 4
      dotfiles/config/nvim/init.vim

4
dotfiles/config/nvim/init.vim

@ -152,8 +152,8 @@ au FileType yaml setlocal tabstop=2 expandtab shiftwidth=2 softtabstop=2
" Disable the rust style guide recommended 4 space indentation " Disable the rust style guide recommended 4 space indentation
let g:rust_recommended_style=0 let g:rust_recommended_style=0
" Explicitly provide vim-go the gofmt command " Explicitly provide vim-go the goimports command
let g:go_fmt_command = "gofmt" let g:go_fmt_command = "goimports"
" Enable more highlighting in vim-go " Enable more highlighting in vim-go
let g:go_highlight_types = 1 let g:go_highlight_types = 1

Loading…
Cancel
Save