go linter nvim

This commit is contained in:
TheK4n 2022-07-15 23:37:47 +03:00
parent 279eca8651
commit f389cc7b30
3 changed files with 12 additions and 0 deletions

View File

@ -36,6 +36,7 @@ alacritty:
vim: vim:
echo "sudo pacman -S npm ctags; mkdir ~/.npm-global; npm config set prefix '~/.npm-global'; npm install -g pyright" echo "sudo pacman -S npm ctags; mkdir ~/.npm-global; npm config set prefix '~/.npm-global'; npm install -g pyright"
echo "go install golang.org/x/tools/gopls@latest"
echo "set editing-mode vi" >> ~/.inputrc echo "set editing-mode vi" >> ~/.inputrc
test -d ~/.vim || \ test -d ~/.vim || \
ln -s $(PWD)/sub/vim ~/.vim ln -s $(PWD)/sub/vim ~/.vim

View File

@ -28,3 +28,7 @@ fi
if [ -d "$HOME/.go" ] ; then if [ -d "$HOME/.go" ] ; then
export GOPATH="$HOME/.go" export GOPATH="$HOME/.go"
fi fi
if [ -d "$HOME/.go/bin" ] ; then
export PATH="$PATH:$HOME/.go/bin"
fi

View File

@ -103,6 +103,10 @@ call vundle#begin()
Plugin 'powerman/vim-plugin-ruscmd' " Russian navigation Plugin 'powerman/vim-plugin-ruscmd' " Russian navigation
" golang
Plugin 'fatih/vim-go'
call vundle#end() call vundle#end()
filetype plugin indent on filetype plugin indent on
@ -164,6 +168,9 @@ let g:multi_cursor_skip_key = '<C-x>'
let g:multi_cursor_quit_key = '<Esc>' let g:multi_cursor_quit_key = '<Esc>'
" golang
let g:go_def_mode='gopls'
let g:go_info_mode='gopls'
au FileType py,go,c,cpp,objc,js call rainbow#load() au FileType py,go,c,cpp,objc,js call rainbow#load()