Skip to content

Commit

Permalink
fix: don't fetch images in insert mode
Browse files Browse the repository at this point in the history
  • Loading branch information
3rd committed Oct 2, 2023
1 parent 7f2edec commit 16f5407
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/image/utils/document.lua
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ local create_document_integration = function(config)
callback = function(args)
if not has_valid_filetype(ctx, vim.bo[args.buf].filetype) then return end
if args.event == "TextChangedI" and ctx.options.clear_in_insert_mode then return end
render(ctx)
if args.event == "TextChanged" then render(ctx) end
end,
})

Expand Down

0 comments on commit 16f5407

Please sign in to comment.