Skip to content

Commit

Permalink
refactor(init): moved lazy_url to same scope
Browse files Browse the repository at this point in the history
  • Loading branch information
pwnwriter committed Oct 28, 2024
1 parent d80d10e commit 7d9a881
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,10 @@ vim.loader.enable()
require("opts").initial()

local lazy_path = vim.fn.stdpath "data" .. "/lazy/lazy.nvim"
local lazy_url = "https://github.com/folke/lazy.nvim"

if not vim.uv.fs_stat(lazy_path) then
vim.fn.system {
"git",
"clone",
"--filter=blob:none",
"--branch=stable",
lazy_url,
lazy_path,
}
local lazy_url = "https://github.com/folke/lazy.nvim"
vim.fn.system { "git", "clone", "--filter=blob:none", lazy_url, "--branch=stable", lazy_path }
end

vim.opt.rtp:prepend(lazy_path)
Expand Down

0 comments on commit 7d9a881

Please sign in to comment.