From af0d7448982881a5e2d63aff8e2d9c2f47582e8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sun, 4 Feb 2024 09:24:35 +0100 Subject: vim: various tweaks and improvements --- vim/ftplugin/nix.vim | 5 +++++ vim/ftplugin/python.vim | 3 --- vim/ftplugin/sh.vim | 1 + 3 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 vim/ftplugin/nix.vim (limited to 'vim/ftplugin') 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 :ALENext +nmap :ALEPrevious 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'] -- cgit v1.2.3