]> git.localhorst.tv Git - nvim-config.git/commitdiff
fix: Deperecated syntax in bootstrapping of LazyVim starter (#56)
authordenartha10 <98868685+denartha10@users.noreply.github.com>
Fri, 29 Mar 2024 16:53:46 +0000 (16:53 +0000)
committerGitHub <noreply@github.com>
Fri, 29 Mar 2024 16:53:46 +0000 (17:53 +0100)
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
```

lua/config/lazy.lua

index 891b1901b7bf269295d7a3717cdb9e744de5ef86..fd269d7ccf498b6d00178cdfec27001dff8c7e5a 100644 (file)
@@ -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 })