mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2024-12-22 19:17:35 +00:00
Install and configure new text linters
This commit is contained in:
parent
6d67d84fc5
commit
cf9a69eede
@ -31,6 +31,11 @@ pip3 install --user vim-vint
|
||||
pip install --user yamllint
|
||||
pip3 install --user yamllint
|
||||
|
||||
# Text / Markdown
|
||||
npm install -g alex
|
||||
pip install --user proselint
|
||||
pip3 install --user proselint
|
||||
|
||||
# Makefile
|
||||
# https://github.com/mrtazz/checkmake
|
||||
|
||||
|
@ -66,18 +66,23 @@ elseif has('nvim') || v:version >= 800
|
||||
\ 'python': ['pyls', 'flake8', 'mypy', 'pylint'],
|
||||
\ 'rust': ['rls', 'cargo'],
|
||||
\ 'sh': ['language_server', 'shell', 'shellcheck'],
|
||||
\ 'text': ['proselint', 'alex'],
|
||||
\}
|
||||
let g:ale_linter_aliases = {
|
||||
\ 'markdown': ['text'],
|
||||
\}
|
||||
" More than a few languages use the same fixers
|
||||
let s:ale_pretty_trim_fixer = ['prettier', 'trim_whitespace', 'remove_trailing_lines']
|
||||
let g:ale_fixers = {
|
||||
\ 'go': ['gofmt', 'goimports'],
|
||||
\ 'json': ['prettier', 'remove_trailing_lines'],
|
||||
\ 'markdown': ['trim_whitespace', 'remove_trailing_lines'],
|
||||
\ 'json': s:ale_pretty_trim_fixer,
|
||||
\ 'rust': ['rustfmt'],
|
||||
\ 'markdown': s:ale_pretty_trim_fixer,
|
||||
\ 'yaml': ['prettier', 'remove_trailing_lines'],
|
||||
\ 'css': s:ale_pretty_trim_fixer,
|
||||
\ 'javascript': s:ale_pretty_trim_fixer,
|
||||
\}
|
||||
|
||||
" Auto-complete from ALE, possible alternative to asyncomplete
|
||||
" let g:ale_completion_enabled = 1
|
||||
|
||||
" Enable asyncomplete
|
||||
Plug 'prabirshrestha/asyncomplete.vim'
|
||||
" Add ALE to asyncomplete
|
||||
|
Loading…
Reference in New Issue
Block a user