Switch from ag(silver sarcher) to rg

It looks like the more up to date and established tool.
It looks like a faster tool.
It can be used by telescope neovim plugin to find files.
It supports an .ignore file in combination with .gitignore for more fine
grained setup.
This commit is contained in:
Daniel Siepmann 2023-10-18 15:14:05 +02:00
parent 915e087f99
commit b3ad833ac1
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4
6 changed files with 9 additions and 18 deletions

View file

@ -4,5 +4,4 @@ _:
".nix-channels".source = ./files/nix-channels;
".profile".source = ./files/profile;
".myclirc".source = ./files/myclirc;
".agignore".source = ./files/agignore;
}

View file

@ -1,9 +0,0 @@
typo3temp
uploads
_build
Data
venv
tags
tags.lock
*.pyc
__pycache__

View file

@ -31,7 +31,7 @@ with pkgs; [
mkcert # TODO: Create own wrapper script to create new certs
tig
universal-ctags
silver-searcher
ripgrep
curl
wget
# Can be installed ad-hock, I don't need it that often.

View file

@ -47,6 +47,7 @@
"/tags"
"*.~lock.*#"
".phpactor.json"
".ignore"
# As I'm using nix-shell in many projects for my own confidence
"shell.nix"

View file

@ -86,14 +86,14 @@ let
};
};
ag = pkgs.vimUtils.buildVimPlugin rec {
pname = "ag";
version = "c478f7973074f15bbf82c298a1678b4e23f1767a";
rg = pkgs.vimUtils.buildVimPlugin rec {
pname = "rg";
version = "c24e37093929a60e61761bdfa591af6984e49b51";
src = pkgs.fetchFromGitHub {
owner = "rking";
repo = "${pname}.vim";
owner = "duane9/";
repo = "nvim-rg";
rev = version;
sha256 = "jlR8NFG7IRCYiQ7ocQQCI2npAPujgQFZ6RpFX8zwTAA=";
sha256 = "PBDdkhZq5OnYpWSbLRG8krMTcuaCRn0mSpRLCqnEgLk=";
};
};
@ -252,7 +252,7 @@ in {
# Adding features
ag
rg
diff-fold
BufOnly-vim

BIN
projects/.ignore Normal file

Binary file not shown.