Add a better Git grep command

This commit is contained in:
Greg Hellings
2024-10-11 10:25:31 -05:00
parent 448dd69804
commit b7bd4879b0
+7 -1
View File
@@ -62,7 +62,7 @@ in
{ {
mode = "n"; mode = "n";
key = "<C-g>"; key = "<C-g>";
action = "<Esc>:Neotree float git_status toggle<CR>"; action = "<Esc>:Git<CR>";
} }
(winMove "h") (winMove "h")
(winMove "j") (winMove "j")
@@ -140,6 +140,12 @@ in
} // (if (lib.versionAtLeast lib.version "24.11") then { } // (if (lib.versionAtLeast lib.version "24.11") then {
web-devicons.enable = true; web-devicons.enable = true;
} else { }); } else { });
userCommands = {
Ggr = {
command = "Ggrep! <q-args> | cw | redraw!";
nargs = "+";
};
};
extraConfigLua = builtins.replaceStrings [ "@git@" ] [ "${pkgs.git}/bin/git" ] (builtins.readFile ./extra.lua); extraConfigLua = builtins.replaceStrings [ "@git@" ] [ "${pkgs.git}/bin/git" ] (builtins.readFile ./extra.lua);
extraConfigVim = builtins.readFile ./extra.vimrc; extraConfigVim = builtins.readFile ./extra.vimrc;
extraPlugins = with pkgs.vimPlugins; [ extraPlugins = with pkgs.vimPlugins; [