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 =
|
||||
let
|
||||
bindingPrefix = "<leader>f";
|
||||
mkTelescopeKeymap = acc: binding: settings:
|
||||
acc ++ [
|
||||
(lib.mergeAttrs {
|
||||
mkTelescopeKeymap = binding: settings:
|
||||
lib.mergeAttrs
|
||||
{
|
||||
mode = "n";
|
||||
key = "${bindingPrefix}${binding}";
|
||||
} settings)
|
||||
];
|
||||
}
|
||||
settings;
|
||||
in
|
||||
lib.foldlAttrs mkTelescopeKeymap [ ] ({
|
||||
lib.mapAttrsToList mkTelescopeKeymap ({
|
||||
"A" = {
|
||||
options.desc = "Resume from last use";
|
||||
action = "require('telescope.builtin').resume";
|
||||
|
Loading…
Reference in New Issue
Block a user