mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-07-12 18:34:36 +02:00
fix(config): trigger all buf filetype events on LazyFile
This commit is contained in:
parent
1935486ff1
commit
862e140a7a
1 changed files with 1 additions and 2 deletions
|
@ -172,7 +172,7 @@ function M.lazy_file()
|
|||
Util.track({ event = "LazyVim.lazy_file" })
|
||||
|
||||
---@type table<string,string[]>
|
||||
local skips = { FileType = Event.get_augroups("FileType") }
|
||||
local skips = {}
|
||||
for _, event in ipairs(events) do
|
||||
skips[event.event] = skips[event.event] or Event.get_augroups(event.event)
|
||||
end
|
||||
|
@ -188,7 +188,6 @@ function M.lazy_file()
|
|||
if vim.bo[event.buf].filetype then
|
||||
Event.trigger({
|
||||
event = "FileType",
|
||||
exclude = skips.FileType,
|
||||
buf = event.buf,
|
||||
})
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue