Skip to content

Commit

Permalink
fix(lazyfile): exclude filetypedetect from skips (#3004)
Browse files Browse the repository at this point in the history
  • Loading branch information
dpetka2001 committed May 13, 2024
1 parent 36b59b2 commit c54eeb5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lua/lazyvim/util/plugin.lua
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,11 @@ function M.lazy_file()
---@type table<string,string[]>
local skips = {}
for _, event in ipairs(events) do
skips[event.event] = skips[event.event] or Event.get_augroups(event.event)
local augroups = Event.get_augroups(event.event)
local groups = vim.tbl_filter(function(t)
return not vim.tbl_contains({ t }, "filetypedetect")
end, augroups)
skips[event.event] = skips[event.event] or groups
end

vim.api.nvim_exec_autocmds("User", { pattern = "LazyFile", modeline = false })
Expand Down

0 comments on commit c54eeb5

Please sign in to comment.