summaryrefslogtreecommitdiff
path: root/lua/talha/functions.lua
diff options
context:
space:
mode:
authortalha <talha@talhaamir.xyz>2024-01-08 21:09:04 +0500
committertalha <talha@talhaamir.xyz>2024-01-08 21:09:04 +0500
commit40a03a865a7ee31561c4150819f080b932ab17de (patch)
treea705ecec42644f2f24a0a9d4060c9705a4c2572c /lua/talha/functions.lua
parentba9dc1c6b6488ac52a18454ee168d6bf3d56640e (diff)
Working on vim-gutentags config
Diffstat (limited to 'lua/talha/functions.lua')
-rw-r--r--lua/talha/functions.lua10
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