aboutsummaryrefslogtreecommitdiffstats
path: root/vim
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2023-06-15 13:44:48 +0100
committerMatthew Lemon <y@yulqen.org>2023-06-15 13:44:48 +0100
commit5fb43eb9017d4dc2f9ceb5aa34a23c1855c70701 (patch)
treeb8b21e723ca675417afe98d14c79916b9deaff41 /vim
parent95d4f145450334ca88726e6300bbeb5d7a01ef60 (diff)
Adds back ale
Diffstat (limited to 'vim')
-rw-r--r--vim/vimrc39
1 files changed, 39 insertions, 0 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 90a05f2..8f5218b 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -115,8 +115,47 @@ Plug 'tpope/vim-unimpaired'
Plug 'tpope/vim-fugitive'
Plug 'SirVer/UltiSnips'
Plug 'honza/vim-snippets'
+Plug 'dense-analysis/ale'
call plug#end()
+" ALE ale config
+let g:ale_enabled = 0
+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_virtualtext_cursor = 'disabled'
+let g:ale_sign_column_always = 1
+let g:ale_open_list = 0
+let g:ale_set_highlights = 1
+let g:ale_set_signs = 1
+let g:ale_set_loclist = 1
+let g:ale_set_quickfix = 0
+let g:ale_echo_cursor = 1
+let g:ale_echo_msg_error_str = 'Error'
+let g:ale_echo_msg_format = '%linter% - %code: %%s'
+let g:ale_loclist_msg_format = '%linter% - %code: %%s'
+let g:ale_echo_msg_warning_str = 'Warning'
+let g:ale_linters = {'python': ['flake8', 'mypy'],
+\ 'ocaml': ['merlin'],
+\ 'cpp': ['clang'],
+\ 'yaml': ['yamllint'],
+\ 'c': ['clang'],
+\ 'go': ['gopls', 'golint', 'gofmt'],
+ \}
+let g:ale_fixers = {
+\ 'python': ['isort', 'yapf', 'black'],
+\ 'go': ['gofmt'],
+\ 'rust': ['rustfmt']
+\ }
+let g:ale_python_mypy_ignore_invalid_syntax = 1
+let g:ale_python_mypy_executable = 'mypy'
+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
+
" Make :grep use ripgrep
if executable('rg')
set grepprg=rg\ --color=never\ --vimgrep