aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index 353a737..bfdbd66 100644
--- a/init.lua
+++ b/init.lua
@@ -334,6 +334,7 @@ vim.g.ale_lint_on_enter = 1
vim.g.ale_lint_on_save = 1
vim.g.ale_lint_on_insert_leave = 1
vim.g.ale_lint_on_text_changed = 1
+vim.g.ale_fix_on_save = 1
-- Custom function for completely toggling ale linting
function _G.toggle_ale_linting()
if (vim.g.ale_lint_on_insert_leave == 0) then
@@ -342,12 +343,14 @@ function _G.toggle_ale_linting()
vim.g.ale_lint_on_save = 1
vim.g.ale_lint_on_insert_leave = 1
vim.g.ale_lint_on_text_changed = 1
+ vim.g.ale_fix_on_save = 1
else
vim.api.nvim_command("ALEDisable")
vim.g.ale_lint_on_enter = 0
vim.g.ale_lint_on_save = 0
vim.g.ale_lint_on_insert_leave = 0
vim.g.ale_lint_on_text_changed = 0
+ vim.g.ale_fix_on_save = 0
end
end
vim.g.ale_linters = {