diff --git a/plugin/command.lua b/plugin/command.lua index b8b744c..560dea1 100644 --- a/plugin/command.lua +++ b/plugin/command.lua @@ -16,7 +16,7 @@ vim.api.nvim_create_user_command("CopyPath", function(context) return end - file_path = string.gsub(full_path, project_root, "") + file_path = vim.fn.substitute(full_path, project_root, "", "g") end if context["args"] == "absolute" then