From cbf525d56143738e09c4f866c8c723d312494933 Mon Sep 17 00:00:00 2001 From: Kevin Hwang Date: Fri, 12 Jul 2024 07:03:32 +0800 Subject: [PATCH] fix(inlayHint): only check condition for Neovim (#5083) --- src/handler/inlayHint/buffer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/handler/inlayHint/buffer.ts b/src/handler/inlayHint/buffer.ts index 7a92434d81a..620a83547e5 100644 --- a/src/handler/inlayHint/buffer.ts +++ b/src/handler/inlayHint/buffer.ts @@ -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)