Skip to content

Commit 168dc5a

Browse files
committed
fix: only use realpath for vim_path
1 parent 2ba4d59 commit 168dc5a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lua/core/global.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ function global:load_variables()
88
self.is_windows = os_name == "Windows_NT"
99
self.is_wsl = vim.fn.has("wsl") == 1
1010
self.vim_path = realpath(vim.fn.stdpath("config"))
11-
self.cache_dir = realpath(vim.fn.stdpath("cache"))
12-
self.data_dir = string.format("%s/site/", realpath(vim.fn.stdpath("data")))
11+
self.cache_dir = vim.fn.stdpath("cache")
12+
self.data_dir = string.format("%s/site/", vim.fn.stdpath("data"))
1313
self.modules_dir = self.vim_path .. "/modules"
1414
self.home = self.is_windows and vim.env.USERPROFILE or vim.env.HOME
1515
end

0 commit comments

Comments
 (0)