1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2024-12-22 13:58:00 +00:00

[neovim] Use simplified code

This commit is contained in:
Daniel Carrillo 2023-07-06 20:35:18 +02:00
parent 49b7a899aa
commit c490714638
Signed by: dcarrillo
GPG Key ID: E4CD5C09DAED6E16

View File

@ -7,9 +7,9 @@ ufo.setup({
})
local keymap = vim.keymap.set
-- Code Folding
keymap("n", "zR", require("ufo").openAllFolds, { desc = "Open all folds" })
keymap("n", "zM", require("ufo").closeAllFolds, { desc = "Close all folds" })
keymap("n", "zR", ufo.openAllFolds, { desc = "Open all folds" })
keymap("n", "zM", ufo.closeAllFolds, { desc = "Close all folds" })
keymap("n", "zr", ufo.openFoldsExceptKinds, { desc = "Fold less" })
keymap("n", "zm", ufo.closeFoldsWith, { desc = "Fold more" })
keymap("n", "zp", ufo.peekFoldedLinesUnderCursor, { desc = "Peek fold" })