19 lines
486 B
Lua
19 lines
486 B
Lua
return {
|
|
'kevinhwang91/nvim-ufo',
|
|
dependencies = {
|
|
'kevinhwang91/promise-async',
|
|
},
|
|
config = function()
|
|
vim.wo.foldcolumn = '1'
|
|
vim.wo.foldlevel = 99 -- feel free to decrease the value
|
|
vim.wo.foldenable = true
|
|
|
|
-- tell the sever the capability of foldingRange
|
|
local capabilities = vim.lsp.protocol.make_client_capabilities()
|
|
capabilities.textDocument.foldingRange = {
|
|
dynamicRegistration = false,
|
|
lineFoldingOnly = true
|
|
}
|
|
end
|
|
}
|