Skip to content

Commit 19bf34c

Browse files
authored
Merge pull request #2135 from junnplus/inlay-hints-padding
determine the padding
2 parents 3e608ad + a03252c commit 19bf34c

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)