aboutsummaryrefslogtreecommitdiffstats
path: root/vim
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-02-08 13:41:43 +0000
committerMatthew Lemon <y@yulqen.org>2024-02-08 13:41:43 +0000
commitdbcf36c9853ca93dfe6fb976c07d3439e8e9f299 (patch)
treebba89c0e3b97553b99246e7b47b5eeb62e8edd74 /vim
parenta81aec9886635214156c287a44d79a6c05a9dd5c (diff)
ALE changes for vim for Go programming
Diffstat (limited to 'vim')
-rw-r--r--vim/vimrc8
1 files changed, 5 insertions, 3 deletions
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 {{{