Skip to content

Commit

Permalink
Revert "improv: use lazy.nvim's recommended bootstrap (better fix for #3
Browse files Browse the repository at this point in the history
)"

This reverts commit 0d569e5.

Downloading the lazy bootstrap code everytime that nvim is executed
completely breaks neovim if the user is offline or in networks with
resticted internet access. The uncached usage of the bootstrap code
is also not cost-effective.
  • Loading branch information
jpoliv authored and chrisgrieser committed Jul 21, 2024
1 parent 513eecb commit c7421a5
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions kickstart-python.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
-- BOOTSTRAP LAZY.NVIM https://lazy.folke.io/developers#bootstrap
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()
-- BOOTSTRAP the plugin manager `lazy.nvim`
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.uv.fs_stat(lazypath) then
local lazyrepo = "https://github.com/folke/lazy.nvim.git"
local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
if vim.v.shell_error ~= 0 then error("Error cloning lazy.nvim:\n" .. out) end
end
vim.opt.runtimepath:prepend(lazypath)

--------------------------------------------------------------------------------
-- BASIC PYTHON-RELATED OPTIONS
Expand Down

0 comments on commit c7421a5

Please sign in to comment.