Skip to content

[BUG] fzf-lua lazy loading #4153

@podocarp

Description

@podocarp

Plugin

fzf-lua

Nixpkgs Release

unstable

Home Manager Release

unstable

I have read the FAQ

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

Description

It seems as though the fzf-lua plugin doesn't respect lazy loading.

My generated init.lua just looks like

    {
        "fzf-lua",
        after = function()
            require("fzf-lua").setup({ "max-perf" })
        end,
        keys = {
            "<leader>S", ...etc
        },
    },

which seems incomplete -- the setup function is missing the rest of the configs.

Minimal, Reproducible Example (MRE)

      fzf-lua = rec {
        enable = true;
        profile = "max-perf";
        lazyLoad.settings = {
          keys = lib.attrsets.mapAttrsToList (n: _: n) keymaps;
        };
        keymaps = {
          "z=" = {
            action = "spell_suggest";
            options.desc = "View spelling suggestions";
          };
      ...

Or is it because the configuration is going through a keymaps attr instead of settings like the other plugins do?

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