ultra folding experience
This commit is contained in:
parent
1e2a6dc5d2
commit
6b0a2f4c1e
2 changed files with 14 additions and 0 deletions
|
@ -37,3 +37,7 @@ vim.keymap.set("n", "<S-h>", "<cmd>bprevious<cr>", { desc = "prev buffer" })
|
||||||
vim.keymap.set("n", "<S-l>", "<cmd>bnext<cr>", { desc = "next buffer" })
|
vim.keymap.set("n", "<S-l>", "<cmd>bnext<cr>", { desc = "next buffer" })
|
||||||
vim.keymap.set("n", "[b", "<cmd>bprevious<cr>", { desc = "prev buffer" })
|
vim.keymap.set("n", "[b", "<cmd>bprevious<cr>", { desc = "prev buffer" })
|
||||||
vim.keymap.set("n", "]b", "<cmd>bnext<cr>", { desc = "next buffer" })
|
vim.keymap.set("n", "]b", "<cmd>bnext<cr>", { desc = "next buffer" })
|
||||||
|
|
||||||
|
vim.keymap.set("n", "<leader>uf", function ()
|
||||||
|
vim.opt.foldcolumn = vim.opt.foldcolumn:get() == "0" and "4" or "0"
|
||||||
|
end, { desc = "toggle fold column" })
|
||||||
|
|
|
@ -119,4 +119,14 @@ return {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
{ -- better folding
|
||||||
|
"https://github.com/kevinhwang91/nvim-ufo",
|
||||||
|
dependencies = {
|
||||||
|
"https://github.com/kevinhwang91/promise-async",
|
||||||
|
},
|
||||||
|
event = "BufReadPost",
|
||||||
|
config = true,
|
||||||
|
},
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue