rhysd / neovim-component

<neovim-editor> WebComponent to embed Neovim to your app with great ease
https://github.com/rhysd/NyaoVim
MIT License
193 stars 18 forks source link

How to change text color at arbitrary cursor position programmatically? #37

Open cancandan opened 8 years ago

cancandan commented 8 years ago

is this possible?

ghost commented 7 years ago

You will need to talk to Neovim directly, using document.getElementById('my-editor').editor.getClient() if I'm correct. For a full reference of what it can do, see https://github.com/rhysd/promised-neovim-client/blob/promisified/index.d.ts. I think you are looking for setCursor.