From 448021d07e99e244c914e598b2c23852fb051448 Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Sun, 21 Jan 2024 08:49:33 -0500 Subject: Add vim-go --- .config/nvim/init.vim | 8 ++++++++ 1 file changed, 8 insertions(+) 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 and 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') -- cgit v1.2.3