Skip to content

Commit 99a2f96

Browse files
committed
plugins/telescope/advanced-git-search: init
1 parent 757e02a commit 99a2f96

File tree

4 files changed

+75
-0
lines changed

4 files changed

+75
-0
lines changed

flake/dev/list-plugins/list-plugins.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ class State(Enum):
7777
),
7878
}
7979
for telescope_extension_name, has_depr_warnings in {
80+
"advanced-git-search": False,
8081
"file-browser": True,
8182
"frecency": True,
8283
"fzf-native": True,
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
let
2+
mkExtension = import ./_mk-extension.nix;
3+
in
4+
mkExtension {
5+
name = "advanced-git-search";
6+
extensionName = "advanced_git_search";
7+
package = "advanced-git-search-nvim";
8+
9+
settingsExample = {
10+
diff_plugin = "diffview";
11+
git_flags = [
12+
"-c"
13+
"delta.side-by-side=false"
14+
];
15+
};
16+
}

plugins/by-name/telescope/extensions/default.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
imports = [
3+
./advanced-git-search.nix
34
./file-browser.nix
45
./frecency.nix
56
./fzf-native.nix
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
empty = {
3+
plugins = {
4+
telescope = {
5+
enable = true;
6+
extensions.advanced-git-search.enable = true;
7+
};
8+
web-devicons.enable = true;
9+
};
10+
};
11+
12+
defaults = {
13+
plugins = {
14+
web-devicons.enable = true;
15+
telescope = {
16+
enable = true;
17+
18+
extensions.advanced-git-search = {
19+
enable = true;
20+
21+
settings = {
22+
browse_command = "GBrowse {commit_hash}";
23+
diff_plugin = "fugitive";
24+
git_flags = [ ];
25+
git_diff_flags = [ ];
26+
git_log_flags = [ ];
27+
show_builtin_git_pickers = false;
28+
29+
entry_default_author_or_date = "author";
30+
keymaps = {
31+
toggle_date_author = "<C-w>";
32+
open_commit_in_browser = "<C-o>";
33+
copy_commit_hash = "<C-y>";
34+
show_entire_commit = "<C-e>";
35+
};
36+
};
37+
};
38+
};
39+
};
40+
};
41+
42+
example = {
43+
plugins = {
44+
web-devicons.enable = true;
45+
telescope = {
46+
enable = true;
47+
48+
extensions.advanced-git-search = {
49+
enable = true;
50+
51+
settings = {
52+
};
53+
};
54+
};
55+
};
56+
};
57+
}

0 commit comments

Comments
 (0)