aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCody Hiar <cody@hiar.ca>2022-06-28 17:09:53 -0600
committerCody Hiar <cody@hiar.ca>2022-06-28 17:09:53 -0600
commit3dd8c079fff354c57dafee9ae7487cc0a6d5852e (patch)
tree70d299679b3fc1c6a614c0295f695bee6c5c35dc
parentb32d81ee8dcfa03e64302f95ab6368acac431c66 (diff)
Add aletoggle shortcut, disable lint on save
-rw-r--r--init.lua2
1 files changed, 2 insertions, 0 deletions
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', '<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" },