Skip to content

Commit 56124b0

Browse files
daisuzuhrsh7th
andauthored
Always show the kind and name in CallHierarchy (#1128)
Co-authored-by: hrsh7th <[email protected]>
1 parent 4d40d0d commit 56124b0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

autoload/lsp/ui/vim.vim

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -443,10 +443,9 @@ function! s:hierarchy_item_to_vim(item, server) abort
443443

444444
let l:path = lsp#utils#uri_to_path(l:uri)
445445
let [l:line, l:col] = lsp#utils#position#lsp_to_vim(l:path, a:item['range']['start'])
446+
let l:text = '[' . lsp#ui#vim#utils#_get_symbol_text_from_kind(a:server, a:item['kind']) . '] ' . a:item['name']
446447
if has_key(a:item, 'detail')
447-
let l:text = a:item['detail']
448-
else
449-
let l:text = '[' . lsp#ui#vim#utils#_get_symbol_text_from_kind(a:server, a:item['kind']) . '] ' . a:item['name']
448+
let l:text .= ": " . a:item['detail']
450449
endif
451450

452451
return {

0 commit comments

Comments
 (0)