feat(nvim): set binding <Tab> to toggle folds

This commit is contained in:
Price Hiller 2023-10-27 15:57:44 -05:00
parent a3be118a6a
commit cfadaecd9b
Signed by: Price
SSH Key Fingerprint: SHA256:Y4S9ZzYphRn1W1kbJerJFO6GGsfu9O70VaBSxJO7dF8

View File

@ -115,6 +115,9 @@ M.setup = function()
-- Binding to allow shift tab dedent
vim.keymap.set("i", "<S-Tab>", "<C-d>", { silent = true, desc = "Insert: Dedent" })
-- Binding to make tab toggle fold
vim.keymap.set("n", "<Tab>", "za", { silent = true, desc = "Fold: Toggle" })
end
return M