mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-07-13 02:44:39 +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" })
|
Util.track({ event = "LazyVim.lazy_file" })
|
||||||
|
|
||||||
---@type table<string,string[]>
|
---@type table<string,string[]>
|
||||||
local skips = { FileType = Event.get_augroups("FileType") }
|
local skips = {}
|
||||||
for _, event in ipairs(events) do
|
for _, event in ipairs(events) do
|
||||||
skips[event.event] = skips[event.event] or Event.get_augroups(event.event)
|
skips[event.event] = skips[event.event] or Event.get_augroups(event.event)
|
||||||
end
|
end
|
||||||
|
@ -188,7 +188,6 @@ function M.lazy_file()
|
||||||
if vim.bo[event.buf].filetype then
|
if vim.bo[event.buf].filetype then
|
||||||
Event.trigger({
|
Event.trigger({
|
||||||
event = "FileType",
|
event = "FileType",
|
||||||
exclude = skips.FileType,
|
|
||||||
buf = event.buf,
|
buf = event.buf,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue