Neovim/lua/plugins/nvim-ufo.lua

26 lines
645 B
Lua
Raw Normal View History

2023-11-17 11:24:21 +00:00
return {
{
"kevinhwang91/nvim-ufo",
event = {
"InsertEnter"
},
dependencies = {
"kevinhwang91/promise-async"
},
opts = {
preview = {
mappings = {
scrollB = "<C-b>",
scrollF = "<C-f>",
scrollU = "<C-u>",
scrollD = "<C-d>",
},
},
-- register treesitter as source for scopes
provider_selector = function(bufnr, filetype, buftype)
return {'treesitter', 'indent'}
end
}
}
}