Avoid double tap feature in insert-mode (#558)

This commit is contained in:
hrsh7th
2019-11-15 21:16:18 +09:00
committed by Prabir Shrestha
parent 6db5bd6c3b
commit 5a207a7876

View File

@@ -292,6 +292,7 @@ function! lsp#ui#vim#output#preview(server, data, options) abort
\ && type(g:lsp_preview_doubletap) == 3
\ && len(g:lsp_preview_doubletap) >= 1
\ && type(g:lsp_preview_doubletap[0]) == 2
\ && mode()[0] !=# 'i'
echo ''
return call(g:lsp_preview_doubletap[0], [])
endif