diff --git a/dots/.config/nvim/lua/core/cmds.lua b/dots/.config/nvim/lua/core/cmds.lua index 25d40d0c..d8b0c4ec 100644 --- a/dots/.config/nvim/lua/core/cmds.lua +++ b/dots/.config/nvim/lua/core/cmds.lua @@ -114,7 +114,7 @@ M.setup = function() vim.cmd.write({ bang = true }) vim.cmd.edit({ args = { fname }, bang = true }) else - vim.cmd.edit({ args = { tmp_dir } }) + pcall(vim.cmd.edit, { args = { tmp_dir } }) end end, { nargs = "*",