From bd60722f3e2c00c685889666c2f2f3339cb35a93 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Tue, 19 Dec 2023 00:19:24 -0600 Subject: [PATCH] feat(nvim): rebind `zm` to `nvim-ufo`'s `zm` provider --- dots/.config/nvim/lua/plugins/configs/nvim-ufo.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/dots/.config/nvim/lua/plugins/configs/nvim-ufo.lua b/dots/.config/nvim/lua/plugins/configs/nvim-ufo.lua index 5be4b455..38442b81 100644 --- a/dots/.config/nvim/lua/plugins/configs/nvim-ufo.lua +++ b/dots/.config/nvim/lua/plugins/configs/nvim-ufo.lua @@ -8,6 +8,7 @@ return { opts = function() vim.keymap.set("n", "zR", require("ufo").openAllFolds) vim.keymap.set("n", "zM", require("ufo").closeAllFolds) + vim.keymap.set("n", "zm", require("ufo").closeFoldsWith) -- Show numbers for fold text local handler = function(virtText, lnum, endLnum, width, truncate)