mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-10 01:04:34 +02:00
plugins/telescope: allow key mappings to be attrs
This commit is contained in:
parent
71c0b4cb59
commit
6152f77a63
2 changed files with 42 additions and 7 deletions
21
tests/test-sources/plugins/telescope/default.nix
Normal file
21
tests/test-sources/plugins/telescope/default.nix
Normal file
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.telescope.enable = true;
|
||||
};
|
||||
|
||||
example = {
|
||||
plugins.telescope = {
|
||||
enable = true;
|
||||
|
||||
keymaps = {
|
||||
"<leader>fg" = "live_grep";
|
||||
"<C-p>" = {
|
||||
action = "git_files";
|
||||
desc = "Telescope Git Files";
|
||||
};
|
||||
};
|
||||
keymapsSilent = true;
|
||||
highlightTheme = "gruvbox";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue