1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-04-14 15:19:12 +08:00

chore(deoplete-lsp): update bundle deoplete-lsp

This commit is contained in:
wsdjeg 2022-10-30 22:24:49 +08:00
parent d6ace74117
commit 0952764300
3 changed files with 9 additions and 6 deletions

View File

@ -13,7 +13,7 @@ https://github.com/neovim/nvim-lsp
## Configuration
* `g:deoplete#lsp#handler_enabled`: If you set it to v:false, you can disable
* `g:deoplete#lsp#handler_enabled`: If you set it to v:true, you can disable
hover handler.
* `g:deoplete#lsp#use_icons_for_candidates`: Set to v:true to enable icons for

View File

@ -4,7 +4,7 @@
"=============================================================================
if !exists('g:deoplete#lsp#handler_enabled')
let g:deoplete#lsp#handler_enabled = v:true
let g:deoplete#lsp#handler_enabled = v:false
endif
if !exists('s:is_handler_enabled')

View File

@ -75,10 +75,13 @@ end
local set_response_handler = function()
for _, client in pairs(vim.lsp.buf_get_clients(0)) do
local current_response_handler = client.config.handlers[feature] or default_response_handler
if current_response_handler == handle_response then return end
client.config.handlers[feature] = handle_response
local handlers = client.config and client.config.handlers
if handlers then
if handlers[feature] == handle_response then
break
end
handlers[feature] = handle_response
end
end
end