# HG changeset patch # User Peter Sanchez # Date 1611860917 28800 # Thu Jan 28 11:08:37 2021 -0800 # Node ID 31cb7ee5fea232abb28e7d4985e608fc21fce990 # Parent e4a7de24f882bc9f03421ed0c2f73cca4aab12be More updates to clean up vim-go and ale integrations diff --git a/vim/vimrc b/vim/vimrc --- a/vim/vimrc +++ b/vim/vimrc @@ -227,7 +227,7 @@ " vim-go map :cnext map :cprevious -nnoremap A :cclose +map :cclose let g:go_list_type = "quickfix" let g:go_fmt_command = "goimports" let g:go_fmt_fail_silently = 1 @@ -237,6 +237,9 @@ let g:go_def_mode='gopls' let g:go_info_mode='gopls' +" let g:go_gopls_enabled = 0 +let g:go_gopls_options=["--mode=stdio"] + " UltiSnips helper function " :call GetAllSnippets() function! GetAllSnippets() @@ -447,7 +450,7 @@ let g:vim_markdown_folding_disabled=1 " ale -let g:ale_linters = {'python': ['flake8'], 'go': ['golint']} +let g:ale_linters = {'python': ['flake8'], 'go': ['golint', 'gopls']} let g:ale_fixers = {'python': ['black', 'isort'], 'go': ['gofmt', 'goimports']} let g:ale_fix_on_save = 1 nnoremap a :ALEToggle