Browse Source

Mon May 29 17:32:30 BST 2023

Gabriel Capella 1 year ago
parent
commit
2a219cad0e
1 changed files with 12 additions and 0 deletions
  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']}