From ab4c04dcb1efa4cfa34dad9af2462e70378be85e Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Sat, 20 Apr 2024 03:20:29 -0500 Subject: [PATCH] fix(nvim): pcall editing `tmp_dir` for Tmp` cmd --- dots/.config/nvim/lua/core/cmds.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = "*",