Skip to content

Commit

Permalink
fix 1
Browse files Browse the repository at this point in the history
  • Loading branch information
barrientosvctor committed May 13, 2024
1 parent 49a32d9 commit 07a9bcc
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions test/init.lua
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
local status, error = pcall(function()
local root = vim.fn.fnamemodify(".repro", ":p")
local root = vim.fn.fnamemodify("", ":p:h")
for _, name in ipairs { "config", "data", "state", "cache" } do
vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end

local lazy_dev_path = debug.getinfo(1).source:sub(2, -25)
local lazy_root = vim.fn.expand(root .. "/plugins")

local lazypath = root .. "/plugins/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
vim.fn.system { "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", lazypath }
Expand All @@ -13,14 +16,14 @@ local status, error = pcall(function()
require("lazy").setup({
{ "barrientosvctor/abyss.nvim", dev = true },
}, {
root = root .. "/plugins",
root = lazy_root,
dev = {
path = debug.getinfo(1).source:sub(2, -21),
path = lazy_dev_path,
},
})

require("abyss").setup({})
end)

if error then print(error) end
vim.cmd(status and "0cq" or "1cq")
vim.cmd(status and "0cq" or "1cq")

0 comments on commit 07a9bcc

Please sign in to comment.