Skip to content

Commit be9639c

Browse files
committed
fix(#14): install script
1 parent b92ec38 commit be9639c

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

lua/qvim/core/manager.lua

+4-6
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@ local utils = require("qvim.utils")
55
local join_paths = utils.join_paths
66
local fmt = string.format
77

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()
129

1310
local function ensure_plugins_in_rtp(lazy_install_dir)
1411
local rtp = vim.opt.rtp:get()
@@ -42,7 +39,7 @@ function manager:init(opts)
4239

4340
if not utils.is_directory(lazy_install_dir) then
4441
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")
4643
if utils.is_directory(core_plugins_dir) then
4744
vim.fn.mkdir(plugins_dir, "p")
4845
vim.loop.fs_rmdir(plugins_dir)
@@ -57,7 +54,7 @@ function manager:init(opts)
5754
lazy_install_dir,
5855
})
5956
local default_snapshot_path =
60-
join_paths(get_qvim_config_dir(), "snapshots", "default.json")
57+
join_paths(get_qvim_state_dir(), "snapshots", "default.json")
6158
local snapshot = assert(
6259
vim.fn.json_decode(vim.fn.readfile(default_snapshot_path))
6360
)
@@ -113,6 +110,7 @@ function manager:load(spec)
113110
git = {
114111
timeout = 120,
115112
},
113+
-- TODO I'm not exactly sure about this location
116114
lockfile = join_paths(get_qvim_rtp_dir(), "lazy-lock.json"),
117115
performance = {
118116
rtp = {

0 commit comments

Comments
 (0)