diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-02-20 19:53:49 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-20 19:53:49 +0800 |
commit | a0790558c3097f2813c56e404af30c3e2d8b8983 (patch) | |
tree | e68f996439184015a2de06b6f72ff2fbe95fe842 /src/nvim/api/extmark.c | |
parent | 69bdcc68234e7f228b667f95b0e65d4ebe8d1f80 (diff) | |
download | rneovim-a0790558c3097f2813c56e404af30c3e2d8b8983.tar.gz rneovim-a0790558c3097f2813c56e404af30c3e2d8b8983.tar.bz2 rneovim-a0790558c3097f2813c56e404af30c3e2d8b8983.zip |
fix(extmarks): priority order of inline and non-inline virt_text (#27532)
Diffstat (limited to 'src/nvim/api/extmark.c')
-rw-r--r-- | src/nvim/api/extmark.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/nvim/api/extmark.c b/src/nvim/api/extmark.c index f6f7d332ec..0b5f3471fb 100644 --- a/src/nvim/api/extmark.c +++ b/src/nvim/api/extmark.c @@ -452,9 +452,10 @@ Array nvim_buf_get_extmarks(Buffer buffer, Integer ns_id, Object start, Object e /// hidden marks, an "invalid" key is added to the "details" /// array of |nvim_buf_get_extmarks()| and family. If /// "undo_restore" is false, the extmark is deleted instead. -/// - priority: a priority value for the highlight group or sign -/// attribute. For example treesitter highlighting uses a -/// value of 100. +/// - priority: a priority value for the highlight group, sign +/// attribute or virtual text. For virtual text, item with +/// highest priority is drawn last. For example treesitter +/// highlighting uses a value of 100. /// - strict: boolean that indicates extmark should not be placed /// if the line or column value is past the end of the /// buffer or end of the line respectively. Defaults to true. |