Skip to content

Commit

Permalink
fix: fixed check on get_clients. Fixes #806
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed May 16, 2024
1 parent 330da73 commit 588471b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/noice/lsp/signature.lua
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function M.setup()

if Config.options.lsp.signature.auto_open.enabled then
-- attach to existing buffers
for _, client in ipairs(vim.lsp.get_clients() or vim.lsp.get_active_clients()) do
for _, client in ipairs((vim.lsp.get_clients or vim.lsp.get_active_clients)()) do
for _, buf in ipairs(vim.lsp.get_buffers_by_client_id(client.id)) do
M.on_attach(buf, client)
end
Expand Down

0 comments on commit 588471b

Please sign in to comment.