NotAShelf / nvf

A highly modular, extensible and distro-agnostic Neovim configuration framework for Nix/NixOS.
https://notashelf.github.io/nvf/
MIT License
160 stars 26 forks source link

"Folder" option for vim.maps #222

Closed Nowaaru closed 6 months ago

Nowaaru commented 7 months ago

⚠️ Please verify that this feature request has NOT been suggested before.

🏷️ Feature Type

API Additions

🔖 Feature description

Currently, it's not possible to write "description-only" mappings to the flake configuration. It expects an action field, but that would turn it into a key mapping.

It's pretty odd to have a flood of +prefix with no way to change it, which kind-of defeats the purpose of which-key because I have no clue which-prefix I need to go into lol

✔️ Solution

I'd just prefer:

{
    "<leader><leader>" = {
        desc = "Miscellaneous";
    };
}

without Home Manager complaining about an expected action field.

❓ Alternatives

Tried using <Nop>.

📝 Additional Context

Tangentially related to #221.

FrothyMarrow commented 6 months ago

Fixed by #235, and has been merged in v0.6.