Add a better Git grep command
This commit is contained in:
@@ -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; [
|
||||||
|
|||||||
Reference in New Issue
Block a user