mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-22 08:53:33 +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
|
@ -56,7 +56,7 @@ return {
|
|||
local plugin = require("lazy.core.config").plugins["conform.nvim"]
|
||||
local Plugin = require("lazy.core.plugin")
|
||||
local opts = Plugin.values(plugin, "opts", false)
|
||||
require("conform").format(Util.merge(opts.format, { bufnr = buf }))
|
||||
require("conform").format(Util.merge({}, opts.format, { bufnr = buf }))
|
||||
end,
|
||||
sources = function(buf)
|
||||
local ret = require("conform").list_formatters(buf)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue