On Dec 15, 2016 10:09, "Davit Samvelyan" <[email protected]> wrote:
>
> Hi Bram,
>
> Do you have plans to add API for semantic highlighting ?
>
> matchadd() and matchaddpos() are doing the job, but they have several
flaws:
>   - The positions are fixed, so when user modifies lines, it messes all
the colors until reparse is completed and matches are renewed,

We're working on an "extended marks" feature in Neovim which will be useful
as a general mechanism for following edits.

>   - You can't add too many of them, it slows down Vim. So plugin writers
have to do workarounds like adding matches only for the visible lines, and
add/remove matches when scrolling.

What else would you suggest?

>   - They are window specific.

Neovim has buffer-local highlighting. API call is nvim_buf_add_highlight().

---
Justin M. Keyes

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui