Skip to content

Commit

Permalink
fix(bootstrap): single forward slash. Fixes #1747
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Sep 16, 2024
1 parent 48b52b5 commit aca30f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bootstrap.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- Lay Bootstrapper
-- Lazy Bootstrapper
-- Usage:
-- ```lua
-- load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()
Expand All @@ -7,7 +7,7 @@ local M = {}

function M.setup()
if vim.env.LAZY_STDPATH then
local root = vim.fn.fnamemodify(vim.env.LAZY_STDPATH, ":p")
local root = vim.fn.fnamemodify(vim.env.LAZY_STDPATH, ":p"):gsub("[\\/]$", "")
for _, name in ipairs({ "config", "data", "state", "cache" }) do
vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end
Expand Down

0 comments on commit aca30f6

Please sign in to comment.