lukas-reineke / indent-blankline.nvim

Indent guides for Neovim
MIT License
3.98k stars 99 forks source link

lazy.nvim plugin import #889

Closed shawnmuzick closed 1 month ago

shawnmuzick commented 1 month ago

Problem

This lazy.nvim plugin file fails to load properly: image

I can't supply the setup() call in that file like I would for most other lazy plugins. I instead have to call it from init.lua.

The above config file produces this error: image

For comparison of the plugin file format, I've provided my lualine config, which executes the setup() call as expected: image

Steps to reproduce

return {
    { "lukas-reineke/indent-blankline.nvim",
        main = "ibl",
        opts = {}
    },
    config = function()
        require('ibl').setup()
    end
}

Expected behavior

the plugin loads without error

Neovim version (nvim -v)

0.95

lukas-reineke commented 1 month ago

You have an extra pair of {} in your config that causes the issue.

shawnmuzick commented 1 month ago

You have an extra pair of {} in your config that causes the issue.

That did it, Thanks!