Skip to content

check timeout #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 9 commits into from
Prev Previous commit
Next Next commit
fix fname: don't append multiple file name to args
  • Loading branch information
hek14 committed Mar 17, 2023
commit e0f29328566caab010b4210b228929d7991f7f8f
2 changes: 1 addition & 1 deletion lua/easyformat/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ local function do_fmt(buf)
end

if searcher(conf.find, buf) then
if conf.fname then
if conf.fname and conf.args[#conf.args] ~= api.nvim_buf_get_name(buf) then
conf.args[#conf.args + 1] = api.nvim_buf_get_name(buf)
end
fmt:init(vim.tbl_extend('keep', conf, { bufnr = buf }))
Expand Down