Skip to content

Commit

Permalink
fix(inlayHint): hl_mode = 'replace' for neovim (#4949)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinhwang91 committed Mar 20, 2024
1 parent 1a8244e commit 0d66554
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/handler/inlayHint/buffer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ export default class InlayHintBuffer implements SyncItem {
if (item.paddingRight) {
chunks.push([' ', 'Normal'])
}
buffer.setVirtualText(srcId, position.line, chunks, { col })
buffer.setVirtualText(srcId, position.line, chunks, { col, hl_mode: 'replace' })
}
nvim.resumeNotification(true, true)
this._onDidRefresh.fire()
Expand Down

0 comments on commit 0d66554

Please sign in to comment.