bookmarks.nvim icon indicating copy to clipboard operation
bookmarks.nvim copied to clipboard

Persist idea

Open xzbdmw opened this issue 1 year ago • 2 comments

You can use nvim_buf_get_extmarks to get those changed line numbers and get the new line location, no need for hash I think.

xzbdmw avatar Apr 01 '24 20:04 xzbdmw

You can use nvim_buf_get_extmarks to get those changed line numbers and get the new line location, no need for hash I think.

Can you be more detailed, I looked into the api and don't know how to do it

crusj avatar Apr 02 '24 01:04 crusj

Like https://github.com/otavioschwanck/arrow.nvim/blob/63ec9a7fa880a771dd2376fd3428a00da910ffbb/lua/arrow/buffer_persist.lua#L139

xzbdmw avatar Apr 02 '24 03:04 xzbdmw