From 19b29c731f7f8039373d8dbee60dd8bc17139e6f Mon Sep 17 00:00:00 2001 From: jiz4oh <41264693+jiz4oh@users.noreply.github.com> Date: Wed, 9 Aug 2023 14:48:18 +0800 Subject: [PATCH] Fix disappeared kind --- 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)