From ef7fc52937fa677c0012de02948c295c353317f2 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Wed, 6 Nov 2024 15:52:29 -0600 Subject: [PATCH] refactor(nvim): make imgclip store relative to cur file --- .../dots/.config/nvim/lua/plugins/configs/img-clip.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/users/price/dots/.config/nvim/lua/plugins/configs/img-clip.lua b/users/price/dots/.config/nvim/lua/plugins/configs/img-clip.lua index c6e8bdb0..ee2994b0 100644 --- a/users/price/dots/.config/nvim/lua/plugins/configs/img-clip.lua +++ b/users/price/dots/.config/nvim/lua/plugins/configs/img-clip.lua @@ -1,7 +1,6 @@ return { { "HakonHarnes/img-clip.nvim", - opts = {}, cmd = { "PasteImage", "ImgClipDebug", @@ -10,5 +9,10 @@ return { keys = { { "p", "PasteImage", desc = "Paste Image" }, }, + config = function() + require("img-clip").setup({ + relative_to_current_file = true, + }) + end, }, }