1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 18:40:05 +08:00
SpaceVim/bundle/plenary.nvim/lua/plenary/async/lsp.lua

13 lines
375 B
Lua
Raw Normal View History

2022-05-16 22:20:10 +08:00
local a = require "plenary.async.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)
M.buf_request_all = a.wrap(vim.lsp.buf_request_all, 4)
return M