summaryrefslogtreecommitdiff
path: root/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
parentba9dc1c6b6488ac52a18454ee168d6bf3d56640e (diff)
Working on vim-gutentags config
Diffstat (limited to 'lua')
-rw-r--r--lua/talha/functions.lua10
-rw-r--r--lua/talha/set.lua2
2 files changed, 11 insertions, 1 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
diff --git a/lua/talha/set.lua b/lua/talha/set.lua
index d4b995e..68b6ee6 100644
--- a/lua/talha/set.lua
+++ b/lua/talha/set.lua
@@ -31,4 +31,4 @@ op.updatetime = 50
op.colorcolumn = '120'
-- required to allow mm (mark-move) command to move file
-vim.g.netrw_keepdir = 0
+vim.g.netrw_keepdir = 1