Skip to content

Commit

Permalink
fix: add more event for autocmd
Browse files Browse the repository at this point in the history
  • Loading branch information
sontungexpt committed Sep 16, 2023
1 parent 7798f2b commit 05901c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/url-open/modules/autocmd.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ M.setup = function(user_opts)
end,
})
else
api.nvim_create_autocmd({ "WinEnter", "BufEnter" }, {
api.nvim_create_autocmd({ "VimEnter", "FileType", "BufEnter", "WinEnter" }, {
desc = "URL Highlighting",
group = api.nvim_create_augroup("HightlightAllUrl", { clear = true }),
callback = function()
Expand Down

0 comments on commit 05901c0

Please sign in to comment.