Use vim for sudoedit and switch ALE to ruff, mypy and shellcheck
Drop the rvim sudoedit setup and replace pylint with ruff/mypy. Ruff's EXE001 check is turned off for sudoedit's temporary copies in /var/tmp.
This commit is contained in:
@@ -33,10 +33,12 @@ Plug 'ghifarit53/tokyonight-vim'
|
||||
|
||||
call plug#end()
|
||||
|
||||
let g:ale_linters={'python': ['pylint'], 'c': ['cc'], 'sh': ['shell'], 'tex': ['lacheck'], 'haskell': ['stack_ghc', 'hlint']}
|
||||
let g:ale_linters_explicit=1
|
||||
let g:ale_enabled=1
|
||||
let g:ale_python_pylint_options='--max-line-length=160 --disable=missing-docstring --disable=invalid-name'
|
||||
let g:ale_linters = {'python': ['ruff', 'mypy'], 'c': ['cc'], 'sh': ['shellcheck'], 'tex': ['lacheck'], 'haskell': ['stack_ghc', 'hlint']}
|
||||
let g:ale_linters_explicit = 1
|
||||
let g:ale_enabled = 1
|
||||
|
||||
" sudoedit's copies in /var/tmp aren't executable
|
||||
let g:ale_pattern_options = {'^/var/tmp/': {'ale_python_ruff_options': '--extend-ignore EXE001'}}
|
||||
|
||||
let g:ale_fixers = {
|
||||
\ 'haskell': ['ormolu', 'remove_trailing_lines', 'trim_whitespace'],
|
||||
@@ -45,8 +47,8 @@ let g:ale_fixers = {
|
||||
\}
|
||||
let g:ale_haskell_ormolu_options = '--no-cabal --no-dot-ormolu'
|
||||
|
||||
let g:rainbow_active=1
|
||||
let g:tex_flavor='latex'
|
||||
let g:rainbow_active = 1
|
||||
let g:tex_flavor = 'latex'
|
||||
|
||||
" }}}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user