diff options
author | Matthew Lemon <y@yulqen.org> | 2024-02-08 13:41:43 +0000 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-02-08 13:41:43 +0000 |
commit | dbcf36c9853ca93dfe6fb976c07d3439e8e9f299 (patch) | |
tree | bba89c0e3b97553b99246e7b47b5eeb62e8edd74 /vim/vimrc | |
parent | a81aec9886635214156c287a44d79a6c05a9dd5c (diff) |
ALE changes for vim for Go programming
Diffstat (limited to '')
-rw-r--r-- | vim/vimrc | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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 {{{ |