aboutsummaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index f3a8e9c..eeb0382 100644
--- a/init.lua
+++ b/init.lua
@@ -314,17 +314,20 @@ require'hop'.setup { keys = 'etovxqpdygfblzhckisuran' }
-- ale
vim.g.ale_lint_on_save = 1
+vim.g.ale_fix_on_save = 1
vim.g.ale_linters = {
sh = { "shellcheck", },
python = { "flake8" },
dockerfile = { "hadolint" },
terraform = { "terraform_ls" },
markdown = { "vale" },
+ nix = { "nix" },
}
vim.g.ale_fixers = {
sh = { "shfmt", },
python = { "isort", "black" },
terraform = { "terraform" },
+ nix = { "nixfmt" },
}
vim.cmd([[
autocmd BufRead *.py :ALEFix