mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-07-13 10:54:40 +02:00
fix(laygit): normalize paths. Fixes #3327
This commit is contained in:
parent
61dc00147b
commit
dbed614655
1 changed files with 2 additions and 2 deletions
|
@ -32,7 +32,7 @@ M.theme = {
|
||||||
unstagedChangesColor = { fg = "DiagnosticError" },
|
unstagedChangesColor = { fg = "DiagnosticError" },
|
||||||
}
|
}
|
||||||
|
|
||||||
M.theme_path = vim.fn.stdpath("cache") .. "/lazygit-theme.yml"
|
M.theme_path = LazyVim.norm(vim.fn.stdpath("cache") .. "/lazygit-theme.yml")
|
||||||
|
|
||||||
-- re-create config file on startup
|
-- re-create config file on startup
|
||||||
M.dirty = true
|
M.dirty = true
|
||||||
|
@ -69,7 +69,7 @@ function M.open(opts)
|
||||||
local ok, lines = pcall(Process.exec, { "lazygit", "-cd" })
|
local ok, lines = pcall(Process.exec, { "lazygit", "-cd" })
|
||||||
if ok then
|
if ok then
|
||||||
M.config_dir = lines[1]
|
M.config_dir = lines[1]
|
||||||
vim.env.LG_CONFIG_FILE = M.config_dir .. "/config.yml" .. "," .. M.theme_path
|
vim.env.LG_CONFIG_FILE = LazyVim.norm(M.config_dir .. "/config.yml" .. "," .. M.theme_path)
|
||||||
else
|
else
|
||||||
---@diagnostic disable-next-line: cast-type-mismatch
|
---@diagnostic disable-next-line: cast-type-mismatch
|
||||||
---@cast lines string
|
---@cast lines string
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue