modules/keymaps: add "buffer" option to mapConfigOptions

This commit is contained in:
Ismaïl Senhaji 2024-05-25 23:16:49 +02:00 committed by Gaétan Lepage
parent 398cc8bfcf
commit bea8492e19

View file

@ -22,6 +22,8 @@ rec {
remap = nixvimOptions.defaultNullOpts.mkBool false "Make the mapping recursive. Inverses \"noremap\""; remap = nixvimOptions.defaultNullOpts.mkBool false "Make the mapping recursive. Inverses \"noremap\"";
desc = nixvimOptions.mkNullOrOption types.str "A textual description of this keybind, to be shown in which-key, if you have it."; desc = nixvimOptions.mkNullOrOption types.str "A textual description of this keybind, to be shown in which-key, if you have it.";
buffer = nixvimOptions.defaultNullOpts.mkBool false "Make the mapping buffer-local. Equivalent to adding <buffer> to a map.";
}; };
modes = { modes = {