Skip to content

Commit

Permalink
bump: hover.nvim
Browse files Browse the repository at this point in the history
  • Loading branch information
willruggiano committed Jan 25, 2024
1 parent fbada72 commit 5fcfa73
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion nix/sources.json
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
"hover.nvim": {
"branch": "main",
"repo": "[email protected]:lewis6991/hover.nvim",
"rev": "0a0dd1baf1bb9415e3358207b6ab35747fb5f3ba",
"rev": "060ea7f5a7b28be87689e2b3d940baf6efc2da04",
"type": "git"
},
"indent-blankline.nvim": {
Expand Down
2 changes: 1 addition & 1 deletion plugins/bombadil/lua/bombadil/lsp/utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ M.buf_request_all = function(bufnr, method, params_fn, handler)
local exp_reponses = 0
local reponses = 0

for _, client in pairs(vim.lsp.get_clients { bufnr = bufnr }) do
for _, client in pairs(vim.lsp.get_active_clients { bufnr = bufnr }) do
if client.supports_method(method, { bufnr = bufnr }) then
exp_reponses = exp_reponses + 1
client.request(method, params_fn(client), function(_, result)
Expand Down
2 changes: 1 addition & 1 deletion plugins/hover.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ return function()
name = "Definition",
priority = 500,
enabled = function(bufnr)
local clients = vim.lsp.get_clients { bufnr = bufnr, method = utils.methods.definition }
local clients = vim.lsp.get_active_clients { bufnr = bufnr, method = utils.methods.definition }
return #clients > 0
end,
execute = function(opts, done)
Expand Down
2 changes: 1 addition & 1 deletion plugins/lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ return function()
},
["<leader>rr"] = {
function()
vim.lsp.stop_client(vim.lsp.get_clients { bufnr = bufnr }, true)
vim.lsp.stop_client(vim.lsp.get_active_clients { bufnr = bufnr }, true)
vim.cmd.edit()
end,
{ buffer = bufnr, desc = "Restart lsp clients" },
Expand Down

0 comments on commit 5fcfa73

Please sign in to comment.