fix(nvim): ensure Tmp cmd invokes correct autocmds

This commit is contained in:
Price Hiller 2024-03-11 20:18:31 -05:00
parent f85e31d7ab
commit 82b58ca6b4
Signed by: Price
GPG Key ID: C3FADDE7A8534BEB

View File

@ -112,6 +112,7 @@ M.setup = function()
if fname ~= "" then
vim.cmd.edit({ args = { fname }, bang = true })
vim.cmd.write({ bang = true })
vim.cmd.edit({ args = { fname }, bang = true })
else
vim.cmd.edit({ args = { tmp_dir } })
end