diff options
author | Cody Hiar <cody@hiar.ca> | 2022-06-28 17:09:53 -0600 |
---|---|---|
committer | Cody Hiar <cody@hiar.ca> | 2022-06-28 17:09:53 -0600 |
commit | 3dd8c079fff354c57dafee9ae7487cc0a6d5852e (patch) | |
tree | 70d299679b3fc1c6a614c0295f695bee6c5c35dc | |
parent | b32d81ee8dcfa03e64302f95ab6368acac431c66 (diff) |
Add aletoggle shortcut, disable lint on save
-rw-r--r-- | init.lua | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -124,6 +124,7 @@ vim.api.nvim_set_keymap('n', '<expr> j', [[(v:count > 1 ? "m'" . v:count : '') . -- Call Ale Fix vim.api.nvim_set_keymap('n', '<leader>ef', '<cmd>ALEFix<cr>', { noremap = true }) vim.api.nvim_set_keymap('n', '<leader>el', '<cmd>ALELint<cr>', { noremap = true }) +vim.api.nvim_set_keymap('n', '<leader>et', '<cmd>ALEToggle<cr>', { noremap = true }) -- Markdown functions vim.api.nvim_set_keymap('n', '<leader>po', '<cmd>AngryReviewer<cr><c-w>k<cmd>ALELint<cr><cmd>lopen<cr><c-w>k', { noremap = true }) vim.api.nvim_set_keymap('n', '<leader>pse', '<cmd>LanguageToolSetUp<cr>', { 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" }, |