summaryrefslogtreecommitdiff
path: root/script/provider/provider.lua
diff options
context:
space:
mode:
authorYe Sijun <junnplus@gmail.com>2023-05-28 09:59:15 +0900
committerYe Sijun <junnplus@gmail.com>2023-05-28 09:59:15 +0900
commita03252c5397ebbde19636e11b937379a0a279d51 (patch)
treec48f746e0b6b285424aaa061e894828eb0a212e5 /script/provider/provider.lua
parent3e608ad57b3cf43beccc2af80a73fe0fc6ede19e (diff)
downloadlua-language-server-a03252c5397ebbde19636e11b937379a0a279d51.zip
determine the padding
Signed-off-by: Ye Sijun <junnplus@gmail.com>
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 2ec429d0..787cfeb8 100644
--- a/script/provider/provider.lua
+++ b/script/provider/provider.lua
@@ -1416,8 +1416,8 @@ m.register 'textDocument/inlayHint' {
},
position = converter.packPosition(state, res.offset),
kind = res.kind,
- paddingLeft = true,
- paddingRight = true,
+ paddingLeft = res.kind == 1,
+ paddingRight = res.kind == 2,
}
end
return hintResults