We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
nvim_buf_set_extmark
nvim_buf_add_highlight
1 parent aa42928 commit 504bc8eCopy full SHA for 504bc8e
buffer/decoration.ts
@@ -261,14 +261,16 @@ async function nvimDecorate(
261
for (const chunk of itertools.chunked(decorations, 1000)) {
262
await batch(denops, async (denops) => {
263
for (const deco of chunk) {
264
- await nvimFn.nvim_buf_add_highlight(
+ await nvimFn.nvim_buf_set_extmark(
265
denops,
266
bufnr,
267
ns,
268
- deco.highlight,
269
deco.line - 1,
270
deco.column - 1,
271
- deco.column - 1 + deco.length,
+ {
+ end_col: deco.column - 1 + deco.length,
272
+ hl_group: deco.highlight,
273
+ },
274
);
275
}
276
});
0 commit comments