From 42d223c266f8525f4f88eb2738ff2690e17c9f9f Mon Sep 17 00:00:00 2001 From: jiz4oh <41264693+jiz4oh@users.noreply.github.com> Date: Tue, 15 Aug 2023 12:48:30 +0800 Subject: [PATCH] Fix disappeared kind (#1485) --- autoload/lsp/ui/vim/utils.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/lsp/ui/vim/utils.vim b/autoload/lsp/ui/vim/utils.vim index 942aa1fbc..4cbefbd8d 100644 --- a/autoload/lsp/ui/vim/utils.vim +++ b/autoload/lsp/ui/vim/utils.vim @@ -72,7 +72,7 @@ function! lsp#ui#vim#utils#symbols_to_loc_list(server, result) abort \ 'filename': l:path, \ 'lnum': l:line, \ 'col': l:col, - \ 'text': lsp#ui#vim#utils#_get_symbol_text_from_kind(a:server, l:symbol['kind']) . ' : ' . g:lsp_document_symbol_detail ? l:symbol['detail'] : l:symbol['name'], + \ 'text': lsp#ui#vim#utils#_get_symbol_text_from_kind(a:server, l:symbol['kind']) . ' : ' . (g:lsp_document_symbol_detail ? l:symbol['detail'] : l:symbol['name']), \ }) endif else @@ -84,7 +84,7 @@ function! lsp#ui#vim#utils#symbols_to_loc_list(server, result) abort \ 'filename': l:path, \ 'lnum': l:line, \ 'col': l:col, - \ 'text': lsp#ui#vim#utils#_get_symbol_text_from_kind(a:server, l:symbol['kind']) . ' : ' . g:lsp_document_symbol_detail ? l:symbol['detail'] : l:symbol['name'], + \ 'text': lsp#ui#vim#utils#_get_symbol_text_from_kind(a:server, l:symbol['kind']) . ' : ' . (g:lsp_document_symbol_detail ? l:symbol['detail'] : l:symbol['name']), \ }) if has_key(l:symbol, 'children') && !empty(l:symbol['children']) call s:symbols_to_loc_list_children(a:server, l:path, l:list, l:symbol['children'], 1)