mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +00:00
nixvimConfigs/fiesta/setups/fuzzy-finder: improve code
This commit is contained in:
parent
a8dfc4e162
commit
e38968d666
@ -15,15 +15,15 @@ in
|
|||||||
keymaps =
|
keymaps =
|
||||||
let
|
let
|
||||||
bindingPrefix = "<leader>f";
|
bindingPrefix = "<leader>f";
|
||||||
mkTelescopeKeymap = acc: binding: settings:
|
mkTelescopeKeymap = binding: settings:
|
||||||
acc ++ [
|
lib.mergeAttrs
|
||||||
(lib.mergeAttrs {
|
{
|
||||||
mode = "n";
|
mode = "n";
|
||||||
key = "${bindingPrefix}${binding}";
|
key = "${bindingPrefix}${binding}";
|
||||||
} settings)
|
}
|
||||||
];
|
settings;
|
||||||
in
|
in
|
||||||
lib.foldlAttrs mkTelescopeKeymap [ ] ({
|
lib.mapAttrsToList mkTelescopeKeymap ({
|
||||||
"A" = {
|
"A" = {
|
||||||
options.desc = "Resume from last use";
|
options.desc = "Resume from last use";
|
||||||
action = "require('telescope.builtin').resume";
|
action = "require('telescope.builtin').resume";
|
||||||
|
Loading…
Reference in New Issue
Block a user