diff options
author | Karel Kočí <cynerd@email.cz> | 2024-02-04 09:24:35 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2024-02-04 09:24:35 +0100 |
commit | af0d7448982881a5e2d63aff8e2d9c2f47582e8f (patch) | |
tree | f4924d5b309035c448d0cb23a6251f51cb60248e /vim | |
parent | 186ba16ae2c7dafcc1ed39a5fe244ab91f4e58ab (diff) | |
download | myconfigs-af0d7448982881a5e2d63aff8e2d9c2f47582e8f.tar.gz myconfigs-af0d7448982881a5e2d63aff8e2d9c2f47582e8f.tar.bz2 myconfigs-af0d7448982881a5e2d63aff8e2d9c2f47582e8f.zip |
vim: various tweaks and improvements
Diffstat (limited to 'vim')
-rw-r--r-- | vim/ftplugin/nix.vim | 5 | ||||
-rw-r--r-- | vim/ftplugin/python.vim | 3 | ||||
-rw-r--r-- | vim/ftplugin/sh.vim | 1 |
3 files changed, 6 insertions, 3 deletions
diff --git a/vim/ftplugin/nix.vim b/vim/ftplugin/nix.vim new file mode 100644 index 0000000..3808c31 --- /dev/null +++ b/vim/ftplugin/nix.vim @@ -0,0 +1,5 @@ +let b:ale_linters = ['nix', 'rnix_lsp', 'statix'] +let b:ale_fixers = ['alejandra', 'remove_trailing_lines', 'trim_whitespace'] + +nmap <F8> :ALENext<cr> +nmap <F7> :ALEPrevious<cr> diff --git a/vim/ftplugin/python.vim b/vim/ftplugin/python.vim index c854e6e..55e7692 100644 --- a/vim/ftplugin/python.vim +++ b/vim/ftplugin/python.vim @@ -1,5 +1,2 @@ -setlocal colorcolumn=88 -setlocal textwidth=88 - let b:ale_linters = ['pylsp', 'pylint', 'mypy', 'pydocstyle'] let b:ale_fixers = ['isort', 'black', 'remove_trailing_lines', 'trim_whitespace'] diff --git a/vim/ftplugin/sh.vim b/vim/ftplugin/sh.vim index 8b70524..8cc42e2 100644 --- a/vim/ftplugin/sh.vim +++ b/vim/ftplugin/sh.vim @@ -1 +1,2 @@ let b:ale_linters = ['shell', 'shellcheck'] +let b:ale_fixers = ['shfmt', 'trim_whitespace', 'remove_trailing_lines'] |