Skip to content

Commit 8ac30a6

Browse files
committed
fix(cache-colorscheme): add backwards compatibility with 0.9
1 parent 5b9ca97 commit 8ac30a6

File tree

1 file changed

+3
-1
lines changed
  • lua/astrocommunity/recipes/cache-colorscheme

1 file changed

+3
-1
lines changed

lua/astrocommunity/recipes/cache-colorscheme/init.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
-- pick a location to cache colorscheme
2-
local colorscheme_cache = vim.fs.joinpath(vim.fn.stdpath "state" --[[@as string]], "last_colorscheme")
2+
local colorscheme_cache = vim.fs.joinpath
3+
and vim.fs.joinpath(vim.fn.stdpath "state" --[[@as string]], "last_colorscheme")
4+
or (vim.fn.stdpath "state" .. "/last_colorscheme")
35

46
return {
57
{

0 commit comments

Comments
 (0)