chottolabs / kznllm.nvim

Apache License 2.0
33 stars 8 forks source link

free the cursor in replace mode #9

Closed chottolabs closed 2 months ago

chottolabs commented 2 months ago

new discovery in nvim lua api actually changes everything... I can replace all the write_content_at_location type functions and do some cooler stuff without forcing the user to keep the cursor in place.

https://neovim.io/doc/user/api.html#_extended-marks

it basically saves a position in the buffer, but it updates properly when you are inserting text before it