Skip to content

Commit 896abb2

Browse files
mattnprabirshrestha
authored andcommitted
Ignore cmdwin (#664)
* Ignore cmdwin * Ignore / cmdwin
1 parent eadb20a commit 896abb2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

autoload/lsp.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ endfunction
206206
function! s:on_text_document_did_open() abort
207207
let l:buf = bufnr('%')
208208
if getbufvar(l:buf, '&buftype') ==# 'terminal' | return | endif
209+
if getcmdwintype() !=# '' | return | endif
209210
call lsp#log('s:on_text_document_did_open()', l:buf, &filetype, getcwd(), lsp#utils#get_buffer_uri(l:buf))
210211
for l:server_name in lsp#get_whitelisted_servers(l:buf)
211212
call s:ensure_flush(l:buf, l:server_name, function('s:fire_lsp_buffer_enabled', [l:server_name, l:buf]))

0 commit comments

Comments
 (0)