Przeglądaj źródła

Mon May 29 17:32:30 BST 2023

Gabriel Capella 1 rok temu
rodzic
commit
2a219cad0e
1 zmienionych plików z 12 dodań i 0 usunięć
  1. 12 0
      dots/.vimrc

+ 12 - 0
dots/.vimrc

@@ -137,8 +137,20 @@ autocmd Filetype go command! -bang AS call go#alternate#Switch(<bang>0, 'split')
 autocmd Filetype go command! -bang AT call go#alternate#Switch(<bang>0, 'tabe')
 map <C-l> :cnext<CR>
 map <C-k> :cprevious<CR>
+map gd :ALEGoToDefinition<CR>
+
 nnoremap <leader>a :cclose<CR>
 autocmd FileType go nmap <leader>b  <Plug>(go-build)
 autocmd FileType go nmap <leader>r  <Plug>(go-run)
 
+set spell spelllang=en_gb
+let g:ale_fix_on_save = 1
+let g:ale_completion_enabled = 1
+let g:ale_echo_msg_format = '[%linter%]% [code]% %s'
+
+let g:ale_sign_error = '✗'
+let g:ale_sign_warning = '⚠️'
+let g:ale_sign_column_always = 1
+
+let g:ale_fixers = {'go': ['gofmt', 'gofumpt', 'goimports', 'golines', 'trim_whitespace']}