From 6541524728c65f98c53257ba15a8154dbaeefc2c Mon Sep 17 00:00:00 2001 From: Zackary Schreur <51675520+zschreur@users.noreply.github.com> Date: Sat, 13 Jul 2024 09:20:18 -0400 Subject: [PATCH] Normalize path for project root --- lua/telescope-jj/utils.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/telescope-jj/utils.lua b/lua/telescope-jj/utils.lua index f64e408..11774f9 100644 --- a/lua/telescope-jj/utils.lua +++ b/lua/telescope-jj/utils.lua @@ -6,7 +6,8 @@ local putils = require("telescope.previewers.utils") local get_jj_root = function() local root, ret = ts_utils.get_os_command_output({ "jj", "root" }) if ret == 0 then - return root[1] + local path = vim.fs.normalize(root[1]); + return path end error("jj root not found")