Skip to content

Commit

Permalink
get_clients for 0.10 get_active_clients for 0.9.x
Browse files Browse the repository at this point in the history
  • Loading branch information
ray-x committed Nov 8, 2023
1 parent 5cf1459 commit 236fb06
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/navigator/reference.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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,
})
Expand Down

0 comments on commit 236fb06

Please sign in to comment.