From 21ab0c1cd5343d4f3d9a3bbe7ebbc67bd83e9487 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Sat, 7 Oct 2023 22:48:34 -0500 Subject: [PATCH] fix(nvim): pcall edit cmd in image.nvim --- dots/.config/nvim/lua/plugins/configs/image.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dots/.config/nvim/lua/plugins/configs/image.lua b/dots/.config/nvim/lua/plugins/configs/image.lua index 78054565..076cf5f9 100644 --- a/dots/.config/nvim/lua/plugins/configs/image.lua +++ b/dots/.config/nvim/lua/plugins/configs/image.lua @@ -16,7 +16,7 @@ return { package.path = package.path .. ";" .. vim.fn.expand("$HOME") .. "/.luarocks/share/lua/5.1/?/init.lua;" package.path = package.path .. ";" .. vim.fn.expand("$HOME") .. "/.luarocks/share/lua/5.1/?.lua;" require("image").setup({}) - vim.cmd.edit() + pcall(vim.cmd.edit) end, }, }