modules/neovim: Readd vim-go plugin
This commit is contained in:
parent
9c6688790c
commit
d9566a2d24
|
@ -35,6 +35,9 @@
|
|||
# blockcomments
|
||||
tcomment_vim
|
||||
|
||||
# Go plugin from fatih
|
||||
vim-go
|
||||
|
||||
# Coc language server support
|
||||
coc-nvim
|
||||
coc-go
|
||||
|
@ -82,6 +85,17 @@
|
|||
set undoreload=1000
|
||||
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
|
||||
require("bufferline").setup{}
|
||||
require("nvim-tree").setup{}
|
||||
|
|
Loading…
Reference in a new issue