Skip to content

Commit 58dc3b1

Browse files
obcatmattn
andauthored
Add title to Lsp(Document|Workspace)Symbol quickfix window (#936)
Co-authored-by: mattn <[email protected]>
1 parent cb506f5 commit 58dc3b1

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

autoload/lsp/ui/vim.vim

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,13 @@ function! s:handle_symbol(server, last_command_id, type, data) abort
204204

205205
let l:list = lsp#ui#vim#utils#symbols_to_loc_list(a:server, a:data)
206206

207-
call setqflist([])
208-
call setqflist(l:list)
207+
if has('patch-8.2.2147')
208+
call setqflist(l:list)
209+
call setqflist([], 'a', {'title': a:type})
210+
else
211+
call setqflist([])
212+
call setqflist(l:list)
213+
endif
209214

210215
if empty(l:list)
211216
call lsp#utils#error('No ' . a:type .' found')

0 commit comments

Comments
 (0)