summaryrefslogtreecommitdiff
path: root/users
diff options
context:
space:
mode:
authorseth <[email protected]>2023-04-10 16:04:39 -0400
committerseth <[email protected]>2023-04-10 16:04:44 -0400
commit574b154fa58c4576cd2c6164822e56b7f3ad17d8 (patch)
treebb5aef6c5ab3925b134b243ea4b64b6d0a97a205 /users
parent64a24407ba3ffaaa44215d593145c17ba674a1e9 (diff)
add nvim keybind to temporarily disable formatting
Diffstat (limited to 'users')
-rw-r--r--users/seth/programs/neovim/config/keybinds.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/users/seth/programs/neovim/config/keybinds.lua b/users/seth/programs/neovim/config/keybinds.lua
index 2b0ac70..a71f606 100644
--- a/users/seth/programs/neovim/config/keybinds.lua
+++ b/users/seth/programs/neovim/config/keybinds.lua
@@ -32,3 +32,7 @@ end)
set("n", "<leader>p", function()
vim.cmd("TroubleToggle")
end)
+
+set("n", "<leader>z", function()
+ vim.api.nvim_clear_autocmds({ group = "LspFormatting" })
+end)