diff options
Diffstat (limited to '.vimrc')
| -rw-r--r-- | .vimrc | 15 |
1 files changed, 8 insertions, 7 deletions
@@ -32,9 +32,9 @@ set guifont=6x13:h13 set rtp+=/opt/homebrew/opt/fzf let g:fzf_preview = 'cat {}' -set grepprg=rg\ --vimgrep\ --smart-case\ --hidden\ --follow +" set grepprg=rg\ --vimgrep\ --smart-case\ --hidden\ --follow -nnoremap \ :Rg<CR> +" nnoremap \ :Rg<CR> " nnoremap <C-T> :Files<cr> nnoremap <Leader>b :Buffers<cr> nnoremap <Leader>s :Blines<cr> @@ -47,20 +47,21 @@ autocmd filetype vimki nmap <leader>z :FZF ~/Wiki<CR> autocmd filetype markdown,text,vimki setlocal textwidth=72 " vim-go plugin +let g:go_gopls_enabled = 1 let g:go_def_mode = "gopls" let g:go_info_mode = "gopls" -let g:go_list_type = "quickfix" let g:go_fmt_command = "gopls" let g:go_gopls_gofumpt = 1 - " let g:go_gopls_enabled = 0 -let g:go_gopls_enabled = 1 -let g:go_def_mode = "godef" -let g:go_fmt_command = "goimports" +" let g:go_def_mode = "godef" +" let g:go_fmt_command = "goimports" let g:go_metalinter_command = "golangci-lint" +let g:go_list_type = "quickfix" + "autocmd FileType go syntax on autocmd FileType go nmap <leader>b <Plug>(go-build) autocmd FileType go nmap <leader>i <Plug>(go-info) +autocmd FileType go nmap <leader>l <Plug>(go-meta-lint) autocmd FileType go nmap <leader>r <Plug>(go-run) autocmd FileType go nmap <leader>t <Plug>(go-test) autocmd FileType go nmap <leader>f <Plug>(go-test-func) |
