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:
@@ -15,7 +15,6 @@ alias sort='sort -n'
|
||||
alias scrcpy='scrcpy --disable-screensaver'
|
||||
alias ssh='kitten ssh'
|
||||
alias sudo='doas'
|
||||
alias sudoedit='doas rvim'
|
||||
#alias trayer='trayer -l --edge top --align right --SetDockType true --SetPartialStrut true --expand true --widthtype request --transparent true --tint 0x232634 --height 18 --monitor 1'
|
||||
alias trayer='trayer -l --edge top --align right --SetDockType true --SetPartialStrut true --expand true --widthtype request --tint 0x232634 --height 18 --monitor 1'
|
||||
alias trc='trash-empty'
|
||||
|
||||
@@ -19,7 +19,7 @@ if [ ! -d ~/.cache/mutt ]; then
|
||||
fi
|
||||
|
||||
export EDITOR=vim
|
||||
export SUDO_EDITOR=rvim
|
||||
export SUDO_EDITOR=vim
|
||||
|
||||
export PATH="/home/fuxino/.local/bin:$PATH"
|
||||
|
||||
|
||||
@@ -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 = {'python': ['ruff', 'mypy'], 'c': ['cc'], 'sh': ['shellcheck'], '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'
|
||||
|
||||
" 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'],
|
||||
|
||||
Reference in New Issue
Block a user