piersolenski / telescope-import.nvim

Import modules with ease
189 stars 7 forks source link

[Error]: insert_at_top: expected boolean, got nil #30

Closed Drew-Daniels closed 2 months ago

Drew-Daniels commented 2 months ago

This plugin is incredibly useful, thanks for creating this!

Started having an issue where it looks like the config validation step has stopped working properly after a recent change. I'm getting this error when launching nvim:

image

Here is my config:

nvim/lua/plugins/init.lua:

return require("lazy").setup({
    {
        "piersolenski/telescope-import.nvim",
        requires = "nvim-telescope/telescope.nvim",
    },
    {
        "nvim-telescope/telescope.nvim",
        branch = "0.1.x",
        dependencies = { "nvim-lua/plenary.nvim", "rafi/telescope-thesaurus.nvim" },
    },
})

nvim/init.lua

local telescope = require("telescope")

telescope.setup({
    extensions = {
        import = {
            insert_at_top = true,
        },
    },
})

telescope.load_extension("import")

This config was working as expected until this morning, when I upgraded telescope-import.nvim:

image

Even when I remove my customized telescope.setup configuration table, I still get the same error, so it doesn't look like it is anything in my config that's causing this - at least as far as I can tell.

NVIM v0.11.0-dev-3788+gac53996eb-Homebrew
Build type: Release
LuaJIT 2.1.1723675123
Run "nvim -V1 -v" for more info

image

piersolenski commented 2 months ago

Hey @Drew-Daniels - I just pushed a fix - could you let me know if it resolves the issue for you?

Drew-Daniels commented 2 months ago

@piersolenski Awesome - looks like it works for me! Thanks 🚀