Skip to content

Commit

Permalink
Merge pull request #29 from QuantumVim/14-feat-configure-structlog-pr…
Browse files Browse the repository at this point in the history
…operly-as-quantumvim-dependency

fix(#14): install script
  • Loading branch information
quantumfate authored Aug 22, 2023
2 parents e3b4926 + be9639c commit 9b37874
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions lua/qvim/core/manager.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@ local utils = require("qvim.utils")
local join_paths = utils.join_paths
local fmt = string.format

local get_qvim_config_dir = _G.get_qvim_config_dir

local plugins_dir =
join_paths(get_qvim_data_dir(), "after", "pack", "lazy", "opt")
local plugins_dir = get_qvim_pack_dir()

local function ensure_plugins_in_rtp(lazy_install_dir)
local rtp = vim.opt.rtp:get()
Expand Down Expand Up @@ -42,7 +39,7 @@ function manager:init(opts)

if not utils.is_directory(lazy_install_dir) then
print("Initializing first time setup")
local core_plugins_dir = join_paths(get_qvim_config_dir(), "plugins")
local core_plugins_dir = join_paths(get_qvim_state_dir(), "plugins")
if utils.is_directory(core_plugins_dir) then
vim.fn.mkdir(plugins_dir, "p")
vim.loop.fs_rmdir(plugins_dir)
Expand All @@ -57,7 +54,7 @@ function manager:init(opts)
lazy_install_dir,
})
local default_snapshot_path =
join_paths(get_qvim_config_dir(), "snapshots", "default.json")
join_paths(get_qvim_state_dir(), "snapshots", "default.json")
local snapshot = assert(
vim.fn.json_decode(vim.fn.readfile(default_snapshot_path))
)
Expand Down Expand Up @@ -113,6 +110,7 @@ function manager:load(spec)
git = {
timeout = 120,
},
-- TODO I'm not exactly sure about this location
lockfile = join_paths(get_qvim_rtp_dir(), "lazy-lock.json"),
performance = {
rtp = {
Expand Down

0 comments on commit 9b37874

Please sign in to comment.