diff options
author | Cody Hiar <cody@hiar.ca> | 2023-03-17 15:57:02 -0600 |
---|---|---|
committer | Cody Hiar <cody@hiar.ca> | 2023-03-17 15:57:02 -0600 |
commit | 061bbb714ac22627eee2ee83ae8bfb54da7bd752 (patch) | |
tree | bee9c70dbb4d795dd816d2b2428cdb25ef139538 | |
parent | e44d6a78b429f7406e003fa601836877b67eef04 (diff) |
fix on save
-rw-r--r-- | init.lua | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 = { |