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:
parent
915e087f99
commit
b3ad833ac1
|
@ -4,5 +4,4 @@ _:
|
|||
".nix-channels".source = ./files/nix-channels;
|
||||
".profile".source = ./files/profile;
|
||||
".myclirc".source = ./files/myclirc;
|
||||
".agignore".source = ./files/agignore;
|
||||
}
|
||||
|
|
|
@ -1,9 +0,0 @@
|
|||
typo3temp
|
||||
uploads
|
||||
_build
|
||||
Data
|
||||
venv
|
||||
tags
|
||||
tags.lock
|
||||
*.pyc
|
||||
__pycache__
|
|
@ -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.
|
||||
|
|
|
@ -47,6 +47,7 @@
|
|||
"/tags"
|
||||
"*.~lock.*#"
|
||||
".phpactor.json"
|
||||
".ignore"
|
||||
# As I'm using nix-shell in many projects for my own confidence
|
||||
"shell.nix"
|
||||
|
||||
|
|
|
@ -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
BIN
projects/.ignore
Normal file
Binary file not shown.
Loading…
Reference in a new issue