Nvim: add ufo fold plugin
This commit is contained in:
parent
7895e73ce6
commit
7330cf920b
5 changed files with 32 additions and 1 deletions
|
@ -17,4 +17,8 @@ return function()
|
|||
|
||||
-- Exit terminal insert mode with esc
|
||||
vim.keymap.set("t", "<Esc>", "<C-\\><C-n>", {})
|
||||
|
||||
-- Using ufo, need to remap `zR` and `zM`. If Neovim is 0.6.1, remap yourself
|
||||
vim.keymap.set("n", "zR", require("ufo").openAllFolds)
|
||||
vim.keymap.set("n", "zM", require("ufo").closeAllFolds)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue