Skip to content

Commit

Permalink
Normalize path for project root
Browse files Browse the repository at this point in the history
  • Loading branch information
zschreur committed Jul 13, 2024
1 parent c070513 commit d832800
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/telescope-jj/utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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.uv.fs_realpath(root[1]);
return path
end

error("jj root not found")
Expand Down

0 comments on commit d832800

Please sign in to comment.