]> Sergey Matveev's repositories - vim-lsp.git/commitdiff
Add an extra space to LspInlayHintsParam to make it legible
authordarkseid <darkseid@apokolips>
Wed, 24 Jan 2024 07:02:32 +0000 (12:32 +0530)
committerdarkseid <darkseid@apokolips>
Wed, 24 Jan 2024 07:02:32 +0000 (12:32 +0530)
autoload/lsp/inlayhints.vim

index 86d8b0892cecb2a81fe609e1d7601badaf8fc6db..e64deb910f54808fd03d0890d944c4067ce1737d 100644 (file)
@@ -57,6 +57,7 @@ export def InlayHintsReply(lspserver: dict<any>, bnr: number, inlayHints: any)
        prop_add(hint.position.line + 1, byteIdx + 1,
          {type: 'LspInlayHintsType', text: label, bufnr: bnr})
       elseif kind == "'parameter'" || kind == '2'
+        label = label .. " "
        prop_add(hint.position.line + 1, byteIdx + 1,
          {type: 'LspInlayHintsParam', text: label, bufnr: bnr})
       endif