@@ -5,10 +5,7 @@ local utils = require("qvim.utils")
5
5
local join_paths = utils .join_paths
6
6
local fmt = string.format
7
7
8
- local get_qvim_config_dir = _G .get_qvim_config_dir
9
-
10
- local plugins_dir =
11
- join_paths (get_qvim_data_dir (), " after" , " pack" , " lazy" , " opt" )
8
+ local plugins_dir = get_qvim_pack_dir ()
12
9
13
10
local function ensure_plugins_in_rtp (lazy_install_dir )
14
11
local rtp = vim .opt .rtp :get ()
@@ -42,7 +39,7 @@ function manager:init(opts)
42
39
43
40
if not utils .is_directory (lazy_install_dir ) then
44
41
print (" Initializing first time setup" )
45
- local core_plugins_dir = join_paths (get_qvim_config_dir (), " plugins" )
42
+ local core_plugins_dir = join_paths (get_qvim_state_dir (), " plugins" )
46
43
if utils .is_directory (core_plugins_dir ) then
47
44
vim .fn .mkdir (plugins_dir , " p" )
48
45
vim .loop .fs_rmdir (plugins_dir )
@@ -57,7 +54,7 @@ function manager:init(opts)
57
54
lazy_install_dir ,
58
55
})
59
56
local default_snapshot_path =
60
- join_paths (get_qvim_config_dir (), " snapshots" , " default.json" )
57
+ join_paths (get_qvim_state_dir (), " snapshots" , " default.json" )
61
58
local snapshot = assert (
62
59
vim .fn .json_decode (vim .fn .readfile (default_snapshot_path ))
63
60
)
@@ -113,6 +110,7 @@ function manager:load(spec)
113
110
git = {
114
111
timeout = 120 ,
115
112
},
113
+ -- TODO I'm not exactly sure about this location
116
114
lockfile = join_paths (get_qvim_rtp_dir (), " lazy-lock.json" ),
117
115
performance = {
118
116
rtp = {
0 commit comments