NotAShelf / nvf

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

Custom binds show up in the command prompt before getting executed #243

Closed justchokingaround closed 6 months ago

justchokingaround commented 7 months ago

⚠️ Please verify that this bug has NOT been reported before.

Description

No response

👟 Reproduction steps

Spam a custom bind and you will see that for a very short period of time you get a command popup, before it gets executed.

👀 Expected behavior

I should not see that

😓 Actual Behavior

image This is for the following bind:

            "<Esc>".action = ":noh<CR>";

💻 Metadata

📝 Relevant log output

nop
FrothyMarrow commented 6 months ago

@justchokingaround By default the mappings are not silent. You can set vim.maps.<key>.silent to true and it will not appear in the command line.

In you case, it will be the following:

vim.maps.normal = {
    "<Esc>" = {
        action = ":noh<CR>";
        silent = true;
    };
};

This is intended behaviour, you can find the related docs with :help :map-silent in Neovim.

justchokingaround commented 6 months ago

oki, thank you a lot!