From 061bbb714ac22627eee2ee83ae8bfb54da7bd752 Mon Sep 17 00:00:00 2001 From: Cody Hiar Date: Fri, 17 Mar 2023 15:57:02 -0600 Subject: fix on save --- init.lua | 3 +++ 1 file changed, 3 insertions(+) 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 = { -- cgit v1.2.3