plugins/telescope: add project extension

This commit is contained in:
Austin Horstman 2025-01-04 16:47:43 -06:00
parent e07a482fd8
commit 974b1d2ce5
No known key found for this signature in database
4 changed files with 140 additions and 0 deletions

View file

@ -7,6 +7,7 @@
./live-greps-args.nix
./manix.nix
./media-files.nix
./project.nix
./ui-select.nix
./undo.nix
];

View file

@ -0,0 +1,34 @@
let
mkExtension = import ./_mk-extension.nix;
in
mkExtension {
name = "project";
package = "telescope-project-nvim";
settingsExample = {
base_dirs = [
"~/dev/src"
"~/dev/src2"
{
__unkeyed-1 = "~/dev/src3";
max_depth = 4;
}
{ path = "~/dev/src4"; }
{
path = "~/dev/src5";
max_depth = 2;
}
];
hidden_files = true;
theme = "dropdown";
order_by = "asc";
search_by = "title";
sync_with_nvim_tree = true;
on_project_selected.__raw = ''
function(prompt_bufnr)
require("telescope._extensions.project.actions").change_working_directory(prompt_bufnr, false)
require("harpoon.ui").nav_file(1)
end
'';
};
}