Skip to content

Commit

Permalink
fix: client filter argument typo (#1374)
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelontheRoad authored Dec 7, 2024
1 parent ddb5240 commit 323d90a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lua/modules/configs/completion/formatting.lua
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ function M.format(opts)
end

local bufnr = opts.bufnr or vim.api.nvim_get_current_buf()
local clients = vim.lsp.get_clients({ buffer = bufnr })
local clients = vim.lsp.get_clients({ bufnr = bufnr })

if opts.filter then
clients = opts.filter(clients)
Expand Down
2 changes: 1 addition & 1 deletion lua/modules/configs/ui/lualine.lua
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ return function()
lsp = {
function()
local buf_ft = vim.bo.filetype
local clients = vim.lsp.get_clients({ buffer = vim.api.nvim_get_current_buf() })
local clients = vim.lsp.get_clients({ bufnr = vim.api.nvim_get_current_buf() })
local lsp_lists = {}
local available_servers = {}
if next(clients) == nil then
Expand Down

0 comments on commit 323d90a

Please sign in to comment.