Skip to content

Commit db8894f

Browse files
committed
fix: only use realpath for vim_path
1 parent 89a635e commit db8894f

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.github/workflows/update_lockfile.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ jobs:
2828
if: ${{ steps.check_lockfile.outputs.files_exists == 'true' }}
2929
timeout-minutes: 5
3030
run: |
31-
mkdir -p "${HOME}"/.cache/nvim
3231
./scripts/update_lockfile.sh
3332
nvim --headless "+Lazy! update" +qa
3433
cp -pv "${HOME}/.config/nvim/lazy-lock.json" .

lua/core/global.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ function global:load_variables()
88
self.is_windows = os_name == "Windows_NT"
99
self.is_wsl = vim.fn.has("wsl") == 1
1010
self.vim_path = realpath(vim.fn.stdpath("config"))
11-
self.cache_dir = realpath(vim.fn.stdpath("cache"))
12-
self.data_dir = string.format("%s/site/", realpath(vim.fn.stdpath("data")))
11+
self.cache_dir = vim.fn.stdpath("cache")
12+
self.data_dir = string.format("%s/site/", vim.fn.stdpath("data"))
1313
self.modules_dir = self.vim_path .. "/modules"
1414
self.home = self.is_windows and vim.env.USERPROFILE or vim.env.HOME
1515
end

0 commit comments

Comments
 (0)