improve folding
This commit is contained in:
parent
951e0db2da
commit
af01354af9
1 changed files with 21 additions and 1 deletions
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue