Files
nvim-config/lua/plugins/ufo.lua
2025-11-19 08:59:51 -05:00

29 lines
741 B
Lua

return {
"kevinhwang91/nvim-ufo",
dependencies = "kevinhwang91/promise-async",
lazy = false,
config = function()
-- Basic fold UI
vim.o.foldcolumn = '1'
vim.o.foldlevel = 99
vim.o.foldlevelstart = 99
vim.o.foldenable = true
-- Triangles for folds
vim.opt.fillchars = {
foldopen = "",
foldclose = "",
foldsep = " ",
}
require("ufo").setup({
provider_selector = function(bufnr, filetype, buftype)
if filetype == "markdown" then
return { "treesitter", "indent" }
end
return { "lsp", "indent" }
end,
})
end
}