mirror of
https://github.com/darwincereska/nvim-config.git
synced 2026-02-12 06:24:42 -05:00
feat(update): update
This commit is contained in:
28
lua/plugins/ui-ufo.lua
Normal file
28
lua/plugins/ui-ufo.lua
Normal file
@@ -0,0 +1,28 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user