summaryrefslogtreecommitdiff
path: root/script/provider/provider.lua
diff options
context:
space:
mode:
authorRiley Bruins <ribru17@hotmail.com>2024-07-04 15:40:36 -0700
committer最萌小汐 <sumneko@hotmail.com>2024-07-15 12:38:56 +0800
commitb7730378a3af41acc15fcd9312fcbce549c0911a (patch)
tree1b4ad9c79e0a5c1d0003265ea8b2a0c68205ce3c /script/provider/provider.lua
parentddc96bd1ec0be95a985ab82531763578bf7eb793 (diff)
downloadlua-language-server-b7730378a3af41acc15fcd9312fcbce549c0911a.zip
Align inlay hint spacing with other LSPs
Diffstat (limited to 'script/provider/provider.lua')
-rw-r--r--script/provider/provider.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/script/provider/provider.lua b/script/provider/provider.lua
index 15e78b9a..2e2fb5eb 100644
--- a/script/provider/provider.lua
+++ b/script/provider/provider.lua
@@ -1426,8 +1426,8 @@ m.register 'textDocument/inlayHint' {
},
position = converter.packPosition(state, res.offset),
kind = res.kind,
- paddingLeft = res.kind == 1,
- paddingRight = res.kind == 2,
+ paddingLeft = false,
+ paddingRight = res.kind == define.InlayHintKind.Parameter,
}
end
return hintResults