diff options
Diffstat (limited to 'lua/talha')
-rw-r--r-- | lua/talha/functions.lua | 10 | ||||
-rw-r--r-- | lua/talha/set.lua | 2 |
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 |