Skip to content

Commit

Permalink
fix: Deperecated syntax in bootstrapping of LazyVim starter (LazyVim#56)
Browse files Browse the repository at this point in the history
In the current state of the lazy.nvim repository, certain updates have been made. However, there remains an outdated reference to 'vim.loop' for the bootstrapping process of 'lazyvim' in this start repo for LazyVim, despite 'vim.loop' being deprecated. To rectify this, I suggest a minor alteration by replacing it with the following code snippet:

```lua
if not (vim.uv or vim.loop).fs_stat(lazypath) then
    -- bootstrap
do
```
  • Loading branch information
denartha10 authored Mar 29, 2024
1 parent 914c60a commit 75625b2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/config/lazy.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then

if not (vim.uv or vim.loop).fs_stat(lazypath) then
-- bootstrap lazy.nvim
-- stylua: ignore
vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", "--branch=stable", lazypath })
Expand Down

0 comments on commit 75625b2

Please sign in to comment.