Skip to content

Commit

Permalink
fix: markdown - follow clear_in_insert_mode when editing in insert mode
Browse files Browse the repository at this point in the history
  • Loading branch information
3rd committed Jul 3, 2023
1 parent 52b25c3 commit a15734e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/image/integrations/markdown.lua
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ local setup_autocommands = function(ctx)
group = group,
callback = function(args)
if vim.bo[args.buf].filetype ~= "markdown" then return end
if args.event == "TextChangedI" and ctx.options.clear_in_insert_mode then return end
render(ctx)
end,
})
Expand Down

0 comments on commit a15734e

Please sign in to comment.