Skip to content

Commit

Permalink
ufo: refine config
Browse files Browse the repository at this point in the history
  • Loading branch information
ttytm committed Jun 14, 2024
1 parent 0a001f8 commit 5e77583
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lua/nxvim/plugins/ufo.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@

local ufo = require("ufo")

local ignored_filetypes = { "markdown", "git", "NeogitStatus" }
for _, key in ipairs(ignored_filetypes) do
ignored_filetypes[key] = true
end

ufo.setup({
open_fold_hl_timeout = 150,
close_fold_kinds_for_ft = {
Expand All @@ -25,7 +30,7 @@ ufo.setup({
jumpBot = "]",
},
},
enable_get_fold_virt_text = false,
provider_selector = function(_, ft, _) return not ignored_filetypes[ft] end,
})
-- <== }

Expand Down

0 comments on commit 5e77583

Please sign in to comment.