neovim/node-client

Notify when user changes line/column number

vegerot opened this issue · 1 comments

I see the documentation in ":h api" describes how to get notifications for Transport on changes to the buffer object. Which is really great for detecting changes to the buffer, but I also want to get information when the user moves the cursor, and to where they move it to. How can I get the user's current cursor position, and get notified when it moves?

add a :help CursorMoved handler and call into your node code.