Skip to content

Commit

Permalink
fix: add missing events for hijack mode
Browse files Browse the repository at this point in the history
  • Loading branch information
3rd committed Dec 26, 2024
1 parent b3e1af8 commit b991fc7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lua/image/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,11 @@ api.setup = function(options)

-- hijack image filetypes
if state.options.hijack_file_patterns and #state.options.hijack_file_patterns > 0 then
vim.api.nvim_create_autocmd("BufReadCmd", {
vim.api.nvim_create_autocmd({
"WinNew",
"BufWinEnter",
"TabEnter",
}, {
group = group,
pattern = state.options.hijack_file_patterns,
callback = function(event)
Expand Down

0 comments on commit b991fc7

Please sign in to comment.