mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-10 01:04:34 +02:00
plugins/telescope/zoxide: init
This commit is contained in:
parent
5908b5a737
commit
380435c555
5 changed files with 112 additions and 0 deletions
|
@ -10,5 +10,6 @@
|
|||
./project.nix
|
||||
./ui-select.nix
|
||||
./undo.nix
|
||||
./zoxide.nix
|
||||
];
|
||||
}
|
||||
|
|
21
plugins/by-name/telescope/extensions/zoxide.nix
Normal file
21
plugins/by-name/telescope/extensions/zoxide.nix
Normal file
|
@ -0,0 +1,21 @@
|
|||
let
|
||||
mkExtension = import ./_mk-extension.nix;
|
||||
in
|
||||
mkExtension {
|
||||
name = "zoxide";
|
||||
package = "telescope-zoxide";
|
||||
|
||||
settingsExample = {
|
||||
prompt_title = "Zoxide Folder List";
|
||||
mappings = {
|
||||
"<C-b>" = {
|
||||
keepinsert = true;
|
||||
action.__raw = ''
|
||||
function(selection)
|
||||
file_browser.file_browser({ cwd = selection.path })
|
||||
end
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue