1
0
Fork 0

improve folding

This commit is contained in:
zymon 2024-12-04 17:32:24 +01:00
parent 951e0db2da
commit af01354af9

View file

@ -242,7 +242,27 @@ return {
"https://github.com/kevinhwang91/promise-async",
},
event = "BufReadPost",
config = true,
keys = {
{
"zR",
function ()
require('ufo').openAllFolds()
end,
desc = "Open all folds"
},
{
"zM",
function ()
require('ufo').closeAllFolds()
end,
desc = "Close all folds"
},
},
config = {
provider_selector = function(bufnr, filetype, buftype)
return {'treesitter', 'indent'}
end
},
},
{ -- rainbow delimiters
"https://gitlab.com/HiPhish/rainbow-delimiters.nvim",