Skip to content

Commit 6e78f35

Browse files
authored
ESC to cancel workspace/symbol (#717)
1 parent d9e471e commit 6e78f35

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

autoload/lsp/ui/vim.vim

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,10 @@ function! lsp#ui#vim#workspace_symbol() abort
343343
return
344344
endif
345345

346-
let l:query = input('query>')
346+
let l:query = inputdialog('query>', '', "\<ESC>")
347+
if l:query ==# "\<ESC>"
348+
return
349+
endif
347350

348351
for l:server in l:servers
349352
call lsp#send_request(l:server, {

0 commit comments

Comments
 (0)