mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-20 16:15:43 +02:00
plugins/telescope/advanced-git-search: init
This commit is contained in:
parent
757e02a183
commit
99a2f96cf0
4 changed files with 75 additions and 0 deletions
|
@ -77,6 +77,7 @@ KNOWN_PATHS: dict[
|
||||||
),
|
),
|
||||||
}
|
}
|
||||||
for telescope_extension_name, has_depr_warnings in {
|
for telescope_extension_name, has_depr_warnings in {
|
||||||
|
"advanced-git-search": False,
|
||||||
"file-browser": True,
|
"file-browser": True,
|
||||||
"frecency": True,
|
"frecency": True,
|
||||||
"fzf-native": True,
|
"fzf-native": True,
|
||||||
|
|
16
plugins/by-name/telescope/extensions/advanced-git-search.nix
Normal file
16
plugins/by-name/telescope/extensions/advanced-git-search.nix
Normal 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"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
|
@ -1,5 +1,6 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
./advanced-git-search.nix
|
||||||
./file-browser.nix
|
./file-browser.nix
|
||||||
./frecency.nix
|
./frecency.nix
|
||||||
./fzf-native.nix
|
./fzf-native.nix
|
||||||
|
|
|
@ -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 = {
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue