Added vim-go into a neovim

This commit is contained in:
Marcin Woźniak 2023-01-04 11:45:15 +01:00
parent 923f0c659b
commit 2f8cdf9c92
Signed by: y0rune
GPG Key ID: F204C385F57EB348

View File

@ -114,6 +114,9 @@ call plug#begin('~/.config/nvim/plugged')
" Terraform " Terraform
Plug 'hashivim/vim-terraform' Plug 'hashivim/vim-terraform'
" GoLang
Plug 'fatih/vim-go'
" Multiple cursors " Multiple cursors
Plug 'terryma/vim-multiple-cursors' Plug 'terryma/vim-multiple-cursors'
@ -626,6 +629,9 @@ au BufNewFile,BufRead,BufWritePre *.ebuild let g:shfmt_extra_args = '-ci -sr -s'
autocmd BufWritePre *.tf lua vim.lsp.buf.formatting_sync() autocmd BufWritePre *.tf lua vim.lsp.buf.formatting_sync()
autocmd BufWritePre *.tfvars lua vim.lsp.buf.formatting_sync() autocmd BufWritePre *.tfvars lua vim.lsp.buf.formatting_sync()
" GoLang
let g:go#fmt#autosave = v:true
" Automatically deletes all trailing whitespace and newlines at end of file on save. " Automatically deletes all trailing whitespace and newlines at end of file on save.
autocmd BufWritePre * %s/\s\+$//e autocmd BufWritePre * %s/\s\+$//e
autocmd BufWritepre * %s/\n\+\%$//e autocmd BufWritepre * %s/\n\+\%$//e