Skip to content

Commit a03252c

Browse files
committed
determine the padding
Signed-off-by: Ye Sijun <junnplus@gmail.com>
1 parent 3e608ad commit a03252c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

script/provider/provider.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1416,8 +1416,8 @@ m.register 'textDocument/inlayHint' {
14161416
},
14171417
position = converter.packPosition(state, res.offset),
14181418
kind = res.kind,
1419-
paddingLeft = true,
1420-
paddingRight = true,
1419+
paddingLeft = res.kind == 1,
1420+
paddingRight = res.kind == 2,
14211421
}
14221422
end
14231423
return hintResults

0 commit comments

Comments
 (0)