modules/neovim: Readd vim-go plugin

This commit is contained in:
fleaz 2022-04-11 14:28:53 +02:00
parent 9c6688790c
commit d9566a2d24
No known key found for this signature in database
GPG key ID: AED15F8FDD04D083

View file

@ -35,6 +35,9 @@
# blockcomments # blockcomments
tcomment_vim tcomment_vim
# Go plugin from fatih
vim-go
# Coc language server support # Coc language server support
coc-nvim coc-nvim
coc-go coc-go
@ -82,6 +85,17 @@
set undoreload=1000 set undoreload=1000
endif endif
" vim-go
au FileType go nmap <leader>r <Plug>(go-run)
au FileType go nmap <leader>b <Plug>(go-build)
au FileType go nmap <leader>t <Plug>(go-test)
let g:go_highlight_functions = 1
let g:go_highlight_methods = 1
let g:go_highlight_fields = 1
let g:go_highlight_types = 1
let g:go_highlight_operators = 1
let g:go_highlight_build_constraints = 1
lua << EOF lua << EOF
require("bufferline").setup{} require("bufferline").setup{}
require("nvim-tree").setup{} require("nvim-tree").setup{}