diff options
| -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') |