mirror of
https://github.com/ray-x/navigator.lua
synced 2024-11-05 12:00:21 +00:00
get_clients for 0.10 get_active_clients for 0.9.x
This commit is contained in:
parent
5cf1459e03
commit
236fb062d2
@ -226,6 +226,9 @@ end
|
||||
-- a function from smjonas/inc-rename.nvim
|
||||
-- https://github.com/smjonas/inc-rename.nvim/blob/main/lua/inc_rename/init.lua
|
||||
local function fetch_lsp_references(bufnr, params, callback)
|
||||
if not vim.lsp.get_clients then
|
||||
vim.lsp.get_clients = vim.lsp.get_active_clients
|
||||
end
|
||||
local clients = vim.lsp.get_clients({
|
||||
bufnr = bufnr,
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user