Преглед на файлове

Mon May 29 17:32:30 BST 2023

Gabriel Capella преди 1 година
родител
ревизия
2a219cad0e
променени са 1 файла, в които са добавени 12 реда и са изтрити 0 реда
  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']}