Skip to content

[BUG] :Telescope keymaps throws with faster-nvim and bytecompilation #3659

@saygo-png

Description

@saygo-png

Plugin

Telescope, faster-nvim

Nixpkgs Release

unstable

Home Manager Release

None

I have read the FAQ

  • I have read the FAQ and my bug is not listed there.

Description

This might end up being duplicate of #3658. Depends on if this is a faster/conform-nvim issue or telescope issue.

Error:

Error executing Lua callback: ...ges/start/telescope.nvim/lua/telescope/actions/utils.lua:0: attempt to index a nil value
stack traceback:
        ...ges/start/telescope.nvim/lua/telescope/actions/utils.lua: in function ''
        ...ckages/start/telescope.nvim/lua/telescope/make_entry.lua: in function <...ckages/start/telescope.nvim/lua/telescope/make_entry.lua:0>
        ...scope.nvim/lua/telescope/finders/async_static_finder.lua: in function 'new_table'
        ...tart/telescope.nvim/lua/telescope/builtin/__internal.lua: in function ''
        ...tart/telescope.nvim/lua/telescope/builtin/__internal.lua: in function ''
        ...ages/start/telescope.nvim/lua/telescope/builtin/init.lua: in function <...ages/start/telescope.nvim/lua/telescope/builtin/init.lua:0>
        ...mPackages/start/telescope.nvim/lua/telescope/command.lua: in function ''
        ...mPackages/start/telescope.nvim/lua/telescope/command.lua: in function 'load_command'
        ...telescope.nvim-scm-1-unstable-scm-1/plugin/telescope.lua: in function <...telescope.nvim-scm-1-unstable-scm-1/plugin/telescope.lua:0>

Generated lua:

-- Ignore the user lua configuration
vim.opt.runtimepath:remove(vim.fn.stdpath("config")) -- ~/.config/nvim
vim.opt.runtimepath:remove(vim.fn.stdpath("config") .. "/after") -- ~/.config/nvim/after

-- Nixvim's internal module table
-- Can be used to share code throughout init.lua
local _M = {}

require("nvim-web-devicons").setup({})

require("telescope").setup({})

local __telescopeExtensions = {}
for i, extension in ipairs(__telescopeExtensions) do
    require("telescope").load_extension(extension)
end

require("faster").setup({})

Minimal, Reproducible Example (MRE)

Run :Telescope keymaps with this config:
Available as a branch of my config at https://github.com/saygo-png/neovim-config/tree/faster-mre

programs.nixvim = {
    plugins = {
      web-devicons.enable = true; # disable warn

      telescope.enable = true;
      faster.enable = true;
    };

    performance = {
      byteCompileLua = {
        enable = true;
        plugins = true;

        configs = false;
        luaLib = false;
        initLua = false;
        nvimRuntime = false;
      };
    };
  };

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions