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