folke / lazy.nvim

💤 A modern plugin manager for Neovim
https://lazy.folke.io/
Apache License 2.0
14.32k stars 344 forks source link

bug: Lazy can't checkout Luasnip. local range is a nil value #534

Closed BozeBro closed 1 year ago

BozeBro commented 1 year ago

Did you check docs and existing issues?

Neovim version (nvim -v)

0.8.2

Operating system/version

MacOS 12.4

Describe the bug

When trying to sync or update luasnip, lazy tells me that luasnip specifically fails each time.

Screen Shot 2023-02-12 at 12 55 05 PM

Steps To Reproduce

nvim -u repro.lua

Expected Behavior

I'd want to see Luasnip see that it has been updated or that luasnip is already up to date like the other plugins (e.g. lazynvim)

Repro

local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
    vim.fn.system({
        "git",
        "clone",
        "--filter=blob:none",
        "https://github.com/folke/lazy.nvim.git",
        "--branch=stable", -- latest stable release
        lazypath,
    })
end
vim.opt.rtp:prepend(lazypath)
-- require("settings")
-- require("lazy").setup("plugins")
require("lazy").setup({
    "L3MON4D3/LuaSnip",
    version = "<CurrentMajor>.*",
    build = "make install_jsregexp",
    config = function()
        require("luasnip/loaders/from_vscode").lazy_load()
    end,
})
folke commented 1 year ago

Where did you get this from? <CurrentMajor>.* That syntax is completely incorrect. What did you expect?

BozeBro commented 1 year ago

oh, Idk I was thinking it was going to be a special keyword. I took the startup page too literally. How embarassing

folke commented 1 year ago

haha, now I understand :) No worries