diff options
Diffstat (limited to 'lua/talha/functions.lua')
-rw-r--r-- | lua/talha/functions.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lua/talha/functions.lua b/lua/talha/functions.lua index b0e8020..d5e2051 100644 --- a/lua/talha/functions.lua +++ b/lua/talha/functions.lua @@ -86,3 +86,13 @@ function GetHomeDir() end return nil end + +function GetCacheDir() + os_name = vim.loop.os_uname().sysname + if os_name == 'Linux' then + return vim.fn.stdpath("data") + else + -- os is windows + return "w:\\tools\\.cache" + end +end |