Skip to content

Commit

Permalink
chore: update types
Browse files Browse the repository at this point in the history
  • Loading branch information
lukas-reineke committed Aug 5, 2024
1 parent e790d2a commit 0d1b6e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lua/lsp-format/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ M.toggle = function(options)
end
end

---@param client lsp.Client
---@param client vim.lsp.Client
---@param bufnr? number
M.on_attach = function(client, bufnr)
if not bufnr then
Expand Down Expand Up @@ -239,10 +239,10 @@ local handler = function(err, result, ctx)
end

---@param bufnr number
---@param client lsp.Client
---@param client vim.lsp.Client
---@param format_options table
local format = function(bufnr, client, format_options)
if not client.supports_method(method) then
if not client.supports_method(method, { bufnr = bufnr }) then
log.warn(string.format('"%s" is not supported for %s, not formatting', method, client.name))
return
end
Expand Down

0 comments on commit 0d1b6e3

Please sign in to comment.