Skip to content

Commit

Permalink
Merge pull request #419 from CoelacanthusHex/fix/list
Browse files Browse the repository at this point in the history
fix(inlayhint): fix format when label is a list in Rust Analyzer
  • Loading branch information
yegappan authored Dec 1, 2023
2 parents 5e715ca + c65bbd4 commit f74b4da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/lsp/inlayhints.vim
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export def InlayHintsReply(lspserver: dict<any>, bnr: number, inlayHints: any)
for hint in inlayHints
var label = ''
if hint.label->type() == v:t_list
label = hint.label->copy()->map((_, v) => v.value)->join(', ')
label = hint.label->copy()->map((_, v) => v.value)->join('')
else
label = hint.label
endif
Expand Down

0 comments on commit f74b4da

Please sign in to comment.