|
@@ -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')
|
|
autocmd Filetype go command! -bang AT call go#alternate#Switch(<bang>0, 'tabe')
|
|
map <C-l> :cnext<CR>
|
|
map <C-l> :cnext<CR>
|
|
map <C-k> :cprevious<CR>
|
|
map <C-k> :cprevious<CR>
|
|
|
|
+map gd :ALEGoToDefinition<CR>
|
|
|
|
+
|
|
nnoremap <leader>a :cclose<CR>
|
|
nnoremap <leader>a :cclose<CR>
|
|
autocmd FileType go nmap <leader>b <Plug>(go-build)
|
|
autocmd FileType go nmap <leader>b <Plug>(go-build)
|
|
autocmd FileType go nmap <leader>r <Plug>(go-run)
|
|
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']}
|
|
|
|
|