mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-28 11:40:13 +02:00
fix(format): Don't leak bufnr into opts tables (#2794)
This commit is contained in:
parent
70bc880330
commit
213493e766
2 changed files with 3 additions and 3 deletions
|
@ -87,10 +87,10 @@ function M.formatter(opts)
|
|||
primary = true,
|
||||
priority = 1,
|
||||
format = function(buf)
|
||||
M.format(Util.merge(filter, { bufnr = buf }))
|
||||
M.format(Util.merge({}, filter, { bufnr = buf }))
|
||||
end,
|
||||
sources = function(buf)
|
||||
local clients = M.get_clients(Util.merge(filter, { bufnr = buf }))
|
||||
local clients = M.get_clients(Util.merge({}, filter, { bufnr = buf }))
|
||||
---@param client lsp.Client
|
||||
local ret = vim.tbl_filter(function(client)
|
||||
return client.supports_method("textDocument/formatting")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue