Skip to content

Commit

Permalink
fix(inlayHint): only check condition for Neovim (#5083)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinhwang91 authored Jul 11, 2024
1 parent 6e1efbf commit cbf525d
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 @@ -217,7 +217,7 @@ export default class InlayHintBuffer implements SyncItem {
}
// TODO right_gravity field is absent in VirtualTextOption
let opts: any = { col, hl_mode: 'replace' }
if (nvim.isVim && item.kind == InlayHintKind.Parameter) { opts.right_gravity = false }
if (!nvim.isVim && item.kind == InlayHintKind.Parameter) { opts.right_gravity = false }
buffer.setVirtualText(srcId, position.line, chunks, opts)
}
nvim.resumeNotification(true, true)
Expand Down

0 comments on commit cbf525d

Please sign in to comment.