plugins/telescope/advanced-git-search: init

This commit is contained in:
Gaetan Lepage 2025-04-06 16:04:24 +02:00
parent 757e02a183
commit 99a2f96cf0
4 changed files with 75 additions and 0 deletions

View file

@ -77,6 +77,7 @@ KNOWN_PATHS: dict[
),
}
for telescope_extension_name, has_depr_warnings in {
"advanced-git-search": False,
"file-browser": True,
"frecency": True,
"fzf-native": True,

View file

@ -0,0 +1,16 @@
let
mkExtension = import ./_mk-extension.nix;
in
mkExtension {
name = "advanced-git-search";
extensionName = "advanced_git_search";
package = "advanced-git-search-nvim";
settingsExample = {
diff_plugin = "diffview";
git_flags = [
"-c"
"delta.side-by-side=false"
];
};
}

View file

@ -1,5 +1,6 @@
{
imports = [
./advanced-git-search.nix
./file-browser.nix
./frecency.nix
./fzf-native.nix

View file

@ -0,0 +1,57 @@
{
empty = {
plugins = {
telescope = {
enable = true;
extensions.advanced-git-search.enable = true;
};
web-devicons.enable = true;
};
};
defaults = {
plugins = {
web-devicons.enable = true;
telescope = {
enable = true;
extensions.advanced-git-search = {
enable = true;
settings = {
browse_command = "GBrowse {commit_hash}";
diff_plugin = "fugitive";
git_flags = [ ];
git_diff_flags = [ ];
git_log_flags = [ ];
show_builtin_git_pickers = false;
entry_default_author_or_date = "author";
keymaps = {
toggle_date_author = "<C-w>";
open_commit_in_browser = "<C-o>";
copy_commit_hash = "<C-y>";
show_entire_commit = "<C-e>";
};
};
};
};
};
};
example = {
plugins = {
web-devicons.enable = true;
telescope = {
enable = true;
extensions.advanced-git-search = {
enable = true;
settings = {
};
};
};
};
};
}