File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 11local global = {}
22local os_name = vim .uv .os_uname ().sysname
3+ local realpath = vim .uv .fs_realpath
34
45function global :load_variables ()
56 self .is_mac = os_name == " Darwin"
67 self .is_linux = os_name == " Linux"
78 self .is_windows = os_name == " Windows_NT"
89 self .is_wsl = vim .fn .has (" wsl" ) == 1
9- self .vim_path = vim .fn .stdpath (" config" )
10- self .cache_dir = vim .fn .stdpath (" cache" )
11- self .data_dir = string.format (" %s/site/" , vim .fn .stdpath (" data" ))
10+ 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" ) ))
1213 self .modules_dir = self .vim_path .. " /modules"
1314 self .home = self .is_windows and vim .env .USERPROFILE or vim .env .HOME
1415end
You can’t perform that action at this time.
0 commit comments