From dbcf36c9853ca93dfe6fb976c07d3439e8e9f299 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Thu, 8 Feb 2024 13:41:43 +0000 Subject: ALE changes for vim for Go programming --- vim/vimrc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'vim/vimrc') diff --git a/vim/vimrc b/vim/vimrc index ffbcde6..049c788 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -169,11 +169,12 @@ autocmd BufEnter *.html,*.slim if s:is_tailwind() | " }}} " ALE {{{ let g:ale_enabled = 0 +let g:ale_set_balloons = 1 let g:ale_echo_msg_format = '[%linter%] %s [%severity%]' let g:ale_sign_error = '!' let g:ale_sign_warning = '?' -let g:ale_lint_on_text_changed = 0 -let g:ale_hover_cursor = 0 +let g:ale_lint_on_text_changed = 1 +let g:ale_hover_cursor = 1 let g:ale_virtualtext_cursor = 'disabled' let g:ale_sign_column_always = 1 let g:ale_open_list = 0 @@ -197,7 +198,7 @@ let g:ale_linters = {'python': ['pyright', 'flake8', 'mypy'], let g:ale_fixers = { \ 'python': ['autoimport', 'isort', 'yapf', 'black'], \ 'javascript': ['eslint'], -\ 'go': ['gofmt'], +\ 'go': ['gofmt', 'goimports', 'gopls'], \ 'cpp': ['clang-format'], \ 'c': ['clang-format'], \ 'rust': ['rustfmt'] @@ -208,6 +209,7 @@ let g:ale_python_mypy_options = '--config-file mypy.ini' " let g:ale_sign_error = '>>' let g:ale_fix_on_save = 1 let g:ale_linters_explicit = 0 +let g:ale_completion_enabled = 1 set omnifunc=ale#completion#OmniFunc " }}} " :grep use ripgrep {{{ -- cgit v1.2.3