Skip to content

Commit

Permalink
fix(config): trigger all buf filetype events on LazyFile
Browse files Browse the repository at this point in the history
folke committed Oct 7, 2023
1 parent 1935486 commit 862e140
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lua/lazyvim/config/init.lua
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 862e140

Please sign in to comment.