Browse Source

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

master
Taylor Bockman 7 years ago
parent
commit
14e0dc5d37
  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
let g:rust_recommended_style=0
" Explicitly provide vim-go the gofmt command
let g:go_fmt_command = "gofmt"
" Explicitly provide vim-go the goimports command
let g:go_fmt_command = "goimports"
" Enable more highlighting in vim-go
let g:go_highlight_types = 1

Loading…
Cancel
Save