diff options
| author | Eugene Triguba <eugenetriguba@gmail.com> | 2024-01-21 08:49:33 -0500 |
|---|---|---|
| committer | Eugene Triguba <eugenetriguba@gmail.com> | 2024-01-21 08:49:33 -0500 |
| commit | 448021d07e99e244c914e598b2c23852fb051448 (patch) | |
| tree | 6d2c1c8033edac6f909c41a7c27d3fb93608062b | |
| parent | Add gobin to path (diff) | |
| download | dotfiles-448021d07e99e244c914e598b2c23852fb051448.zip | |
Add vim-go
| -rw-r--r-- | .config/nvim/init.vim | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 0c98b73..0f199ca 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -23,6 +23,9 @@ autocmd Filetype python setlocal expandtab tabstop=4 shiftwidth=4 softtabstop=4 " sw - when indenting with '>', use 4 spaces width " sts - control <tab> and <bs> keys to match tabstop +" Go-specific whitespace file settings +au BufNewFile,BufRead *.go setlocal noet tabstop=4 shiftwidth=4 softtabstop=4 + " General whitespace settings set shiftwidth=4 filetype plugin indent on @@ -34,6 +37,8 @@ set backspace=indent,eol,start " eol allow backspacing over line breaks (join lines) " start allow backspacing over the start of insert; CTRL-W and CTRL-U " stop once at the start of insert. + + call plug#begin("$HOME/.config/nvim/plugged") " Auto complete @@ -60,6 +65,9 @@ Plug 'sainnhe/everforest' " Terraform Plug 'hashivim/vim-terraform' +" Go support +Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' } + call plug#end() if has('termguicolors') |