aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim')
-rw-r--r--vim/ftplugin/nix.vim5
-rw-r--r--vim/ftplugin/python.vim3
-rw-r--r--vim/ftplugin/sh.vim1
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']