aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCody Hiar <cody@hiar.ca>2023-03-17 15:57:02 -0600
committerCody Hiar <cody@hiar.ca>2023-03-17 15:57:02 -0600
commit061bbb714ac22627eee2ee83ae8bfb54da7bd752 (patch)
treebee9c70dbb4d795dd816d2b2428cdb25ef139538
parente44d6a78b429f7406e003fa601836877b67eef04 (diff)
fix on save
-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 = {