mirror of
https://github.com/prabirshrestha/vim-lsp.git
synced 2025-12-14 20:35:59 +01:00
Make sure signature_help and completion get properly disabled (#875)
* Make sure signature_help and completion get properly disabled * Rename teardown -> _disable Co-authored-by: Prabir Shrestha <mail@prabir.me>
This commit is contained in:
@@ -76,6 +76,8 @@ function! lsp#disable() abort
|
||||
call lsp#ui#vim#virtual#disable()
|
||||
call lsp#ui#vim#highlights#disable()
|
||||
call lsp#ui#vim#diagnostics#textprop#disable()
|
||||
call lsp#ui#vim#signature_help#_disable()
|
||||
call lsp#ui#vim#completion#_disable()
|
||||
call lsp#internal#diagnostics#_disable()
|
||||
call s:unregister_events()
|
||||
let s:enabled = 0
|
||||
|
||||
@@ -9,6 +9,12 @@ function! lsp#ui#vim#completion#_setup() abort
|
||||
augroup END
|
||||
endfunction
|
||||
|
||||
function! lsp#ui#vim#completion#_disable() abort
|
||||
augroup lsp_ui_vim_completion
|
||||
autocmd!
|
||||
augroup END
|
||||
endfunction
|
||||
|
||||
"
|
||||
" After CompleteDone, v:complete_item's word has been inserted into the line.
|
||||
" Yet not inserted commit characters.
|
||||
|
||||
@@ -150,3 +150,9 @@ function! lsp#ui#vim#signature_help#setup() abort
|
||||
augroup END
|
||||
endfunction
|
||||
|
||||
function! lsp#ui#vim#signature_help#_disable() abort
|
||||
augroup _lsp_signature_help_
|
||||
autocmd!
|
||||
augroup END
|
||||
endfunction
|
||||
|
||||
|
||||
Reference in New Issue
Block a user