diff options
author | Ye Sijun <junnplus@gmail.com> | 2023-05-28 09:59:15 +0900 |
---|---|---|
committer | Ye Sijun <junnplus@gmail.com> | 2023-05-28 09:59:15 +0900 |
commit | a03252c5397ebbde19636e11b937379a0a279d51 (patch) | |
tree | c48f746e0b6b285424aaa061e894828eb0a212e5 /script/provider/provider.lua | |
parent | 3e608ad57b3cf43beccc2af80a73fe0fc6ede19e (diff) | |
download | lua-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.lua | 4 |
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 |