Skip to content

Commit

Permalink
fix: language server start regression due to ignores in ufo config
Browse files Browse the repository at this point in the history
  • Loading branch information
ttytm committed Jun 14, 2024
1 parent acd3eb4 commit f59d780
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions lua/nxvim/plugins/ufo.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@

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 @@ -30,7 +25,15 @@ ufo.setup({
jumpBot = "]",
},
},
provider_selector = function(_, ft, _) return not ignored_filetypes[ft] end,
})
-- <== }

-- { == Events ==> ============================================================

nx.au({
"FileType",
pattern = { "markdown", "NeogitStatus" },
callback = function() require("ufo").detach() end,
})
-- <== }

Expand Down

0 comments on commit f59d780

Please sign in to comment.