mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-24 17:58:51 +02:00
fix(lazyfile): exclude filetypedetect
from skips (#3004)
This commit is contained in:
parent
36b59b2608
commit
c54eeb5390
1 changed files with 5 additions and 1 deletions
|
@ -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 })
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue