Download:
child 266:df1aedc071ec
parent 264:9dc40edb261c
265:c7fa41a62119
Anton Shestakov <av6@dwimlabs.net>, Sun, 07 Jul 2024 19:31:28 +0400
.vim: replace syntastic with ALE

2 файлов изменено, 9 вставок(+), 21 удалений(-) [+]
.vim/pack/default/start/urls file | annotate | diff | comparison | revisions
.vimrc file | annotate | diff | comparison | revisions
--- a/.vim/pack/default/start/urls Sun Jul 07 19:27:48 2024 +0400
+++ b/.vim/pack/default/start/urls Sun Jul 07 19:31:28 2024 +0400
@@ -1,6 +1,6 @@
https://github.com/ctrlpvim/ctrlp.vim
+https://github.com/dense-analysis/ale
https://github.com/mhinz/vim-signify
-https://github.com/scrooloose/syntastic
https://github.com/tomasr/molokai
https://github.com/vim-airline/vim-airline
https://github.com/vim-airline/vim-airline-themes
--- a/.vimrc Sun Jul 07 19:27:48 2024 +0400
+++ b/.vimrc Sun Jul 07 19:31:28 2024 +0400
@@ -114,26 +114,14 @@
let g:ctrlp_max_height = 20
let g:ctrlp_custom_ignore = '\v[\/](venv|node_modules|\.(git|hg|svn))$'
-" syntastic
-let g:syntastic_check_on_open = 1
-let g:syntastic_auto_loc_list = 1
-let g:syntastic_enable_signs = 1
-let g:syntastic_enable_highlighting = 1
-let g:syntastic_html_checkers = ["jshint"]
-let g:syntastic_html_jshint_exec = "~/node_modules/jshint/bin/jshint"
-let g:syntastic_python_checkers = ["pyflakes3"]
-let g:syntastic_lua_checkers = ["luac", "luacheck"]
-let g:syntastic_lua_luacheck_exec = "~/.luarocks/bin/luacheck"
-let g:syntastic_javascript_checkers = ["jshint"]
-let g:syntastic_javascript_jshint_exec = "~/node_modules/jshint/bin/jshint"
-
-au FileType python call s:check_if_python2()
-
-fun! s:check_if_python2()
- if getline(1) =~ '#!.*\<python2?\>'
- let g:syntastic_python_checkers=[]
- endif
-endfun
+" ale
+let g:ale_lint_on_text_changed = 'never'
+let g:ale_lint_on_insert_leave = 0
+let g:ale_open_list = 1
+let g:ale_linters = { 'python': ['mypy', 'pyflakes'] }
+let g:ale_python_mypy_auto_pipenv = 1
+let g:ale_python_pyflakes_executable = 'pyflakes3'
+let b:ale_fixers = ['remove_trailing_lines', 'trim_whitespace']
" signify
let g:signify_skip = { 'vcs': { 'allow': ['git', 'hg'] } }