Skip to content

Commit 9c62c9c

Browse files
committed
refactor: move cache file to .cache dir
1 parent 33eecff commit 9c62c9c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lua/text-transform/popup/common.lua

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ popup_common.default_frequency = {
2424
const_case = 1,
2525
}
2626

27-
local frequency_file = vim.fn.stdpath("config") .. "/text-transform-frequency.json"
27+
local cache_dir = vim.fn.stdpath("cache")
28+
local frequency_file = cache_dir .. "/text-transform-frequency.json"
2829
local frequency
2930

3031
function popup_common.load_frequency()

0 commit comments

Comments
 (0)