feat: trigger TextChanged event after updating buffer
Details
Some users (or at least 1) use a plugin I own render-markdown.nvim to view ChatGPT sessions. My plugin adds some highlights and icons to improve viewing markdown in neovim.
When a session is changed from the sessions panel the nvim_buf_set_lines API is called which updates the contents of the buffer. However on my plugin's side I am unable to "see" that anything changed so do not update the rendering leading to this issue: https://github.com/MeanderingProgrammer/render-markdown.nvim/issues/210.
To bridge this gap I added a manual trigger of the TextChanged event after the API call which lets my plugin re-render the buffer.
LMK if there are any concerns with the change or if there is another approach I can take, thank you!