From 3dd8c079fff354c57dafee9ae7487cc0a6d5852e Mon Sep 17 00:00:00 2001 From: Cody Hiar Date: Tue, 28 Jun 2022 17:09:53 -0600 Subject: Add aletoggle shortcut, disable lint on save --- init.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/init.lua b/init.lua index 4a9c0e1..70776a7 100644 --- a/init.lua +++ b/init.lua @@ -124,6 +124,7 @@ vim.api.nvim_set_keymap('n', ' j', [[(v:count > 1 ? "m'" . v:count : '') . -- Call Ale Fix vim.api.nvim_set_keymap('n', 'ef', 'ALEFix', { noremap = true }) vim.api.nvim_set_keymap('n', 'el', 'ALELint', { noremap = true }) +vim.api.nvim_set_keymap('n', 'et', 'ALEToggle', { noremap = true }) -- Markdown functions vim.api.nvim_set_keymap('n', 'po', 'AngryReviewerkALELintlopenk', { noremap = true }) vim.api.nvim_set_keymap('n', 'pse', 'LanguageToolSetUp', { noremap = true }) @@ -321,6 +322,7 @@ require'hop'.setup { keys = 'etovxqpdygfblzhckisuran' } -- ale vim.g.ale_lint_on_enter = 0 +vim.g.ale_lint_on_save = 0 vim.g.ale_linters = { sh = { "shellcheck", }, python = { "flake8" }, -- cgit v1.2.3