mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 16:00:07 +08:00
16 lines
495 B
Lua
Vendored
16 lines
495 B
Lua
Vendored
local a = require "plenary.async_lib.async"
|
|
|
|
local M = {}
|
|
|
|
---This will be deprecated because the callback can be called multiple times.
|
|
---This will give a coroutine error because the coroutine will be resumed multiple times.
|
|
---Please use buf_request_all instead.
|
|
M.buf_request = a.wrap(vim.lsp.buf_request, 4)
|
|
|
|
--This was recently merged into master so we just check if it is there
|
|
if vim.lsp.buf_request_all ~= nil then
|
|
M.buf_request_all = a.wrap(vim.lsp.buf_request_all, 4)
|
|
end
|
|
|
|
return M
|