mirror of
https://github.com/darwincereska/nvim-config.git
synced 2026-02-12 09:34:42 -05:00
feat(working): first working condition
This commit is contained in:
@@ -3,6 +3,26 @@ return {
|
||||
dependencies = "kevinhwang91/promise-async",
|
||||
lazy = false,
|
||||
config = function()
|
||||
require("config.plugin.ufo")
|
||||
-- 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