Skip to content

Commit 95425ee

Browse files
committed
fix(windows): update default colorscheme path
Fixes #41 Closes #42
1 parent cf5ee40 commit 95425ee

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ jobs:
3636
- name: colors-wal.vim (Windows)
3737
if: matrix.os == 'windows-latest'
3838
run: |
39-
mkdir -p "$HOME/AppData/Local/wal/"
40-
cp ./tests/colors-wal.vim "$HOME/AppData/Local/wal/"
39+
mkdir -p "$HOME/.cache/wal/"
40+
cp ./tests/colors-wal.vim "$HOME/.cache/wal/"
4141
- name: colors-wal.vim (Ubuntu/MacOS)
4242
if: matrix.os != 'windows-latest'
4343
run: |

lua/neopywal/lib/palette.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ function M.setup(config)
140140

141141
local cache_dir
142142
if path_sep == "\\" then
143-
cache_dir = os.getenv("LOCALAPPDATA") -- Windows
143+
cache_dir = os.getenv("USERPROFILE") .. "\\.cache" -- Windows
144144
else
145145
cache_dir = os.getenv("HOME") .. "/.cache" -- Linux/MacOS
146146
end

tests/neopywal/palette_spec.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ local path_sep = jit and (jit.os == "Windows" and "\\" or "/") or package.config
88
---@type string?
99
local cache_dir = ""
1010
if path_sep == "\\" then
11-
cache_dir = os.getenv("LOCALAPPDATA") -- Windows
11+
cache_dir = os.getenv("USERPROFILE") .. "\\.cache" -- Windows
1212
else
1313
cache_dir = os.getenv("HOME") .. "/.cache" -- Linux/MacOS
1414
end

0 commit comments

Comments
 (0)