Closed ArtAndreev closed 1 year ago
I think just replace let l:label = join(map(copy(l:hint.label), {_,v -> v.value}), ', ')
with let l:label = join(map(copy(l:hint.label), {_,v -> v.value}), '')
can fix it?
PR has been merged. Please try again.
Looks OK, thank you!
Currently I write some rust code with
rust-analyzer
. It has type inlay hints enabled by default. I set uprust-analyzer
withvim-lsp
:After writing code inlay hints rendered strangely:
I thought there are some items that are joined with ', '. I searched for it in this plugin codebase and found this line https://github.com/prabirshrestha/vim-lsp/blob/master/autoload/lsp/internal/inlay_hints.vim#L25.
I turned on log file with
let g:lsp_log_file = expand('~/vim-lsp.log')
and found inlay hints responses. For example, this:The type of hints is list, like in the line above, so they are joined with ', '.
Can be the joining removed?
P.S. VS Code renders okay: