Skip to content

Commit aca30f6

Browse files
committed
fix(bootstrap): single forward slash. Fixes #1747
1 parent 48b52b5 commit aca30f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bootstrap.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
-- Lay Bootstrapper
1+
-- Lazy Bootstrapper
22
-- Usage:
33
-- ```lua
44
-- load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()
@@ -7,7 +7,7 @@ local M = {}
77

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

0 commit comments

Comments
 (0)