Skip to content

Commit

Permalink
home-manager/neovim: adjust ripgrep ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagokokada committed Dec 15, 2023
1 parent 05f4833 commit 31a79c1
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions home-manager/editor/neovim.nix
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ in
},
-- configure to use ripgrep
vimgrep_arguments = {
"rg",
"${lib.getExe pkgs.ripgrep}",
"--follow", -- Follow symbolic links
"--hidden", -- Search for hidden files
"--no-heading", -- Don't group matches by each file
Expand All @@ -374,10 +374,6 @@ in
"--glob=!**/.git/*",
"--glob=!**/.idea/*",
"--glob=!**/.vscode/*",
"--glob=!**/build/*",
"--glob=!**/dist/*",
"--glob=!**/yarn.lock",
"--glob=!**/package-lock.json",
},
},
pickers = {
Expand All @@ -386,16 +382,12 @@ in
-- needed to exclude some files & dirs from general search
-- when not included or specified in .gitignore
find_command = {
"rg",
"${lib.getExe pkgs.ripgrep}",
"--files",
"--hidden",
"--glob=!**/.git/*",
"--glob=!**/.idea/*",
"--glob=!**/.vscode/*",
"--glob=!**/build/*",
"--glob=!**/dist/*",
"--glob=!**/yarn.lock",
"--glob=!**/package-lock.json",
},
},
},
Expand Down

0 comments on commit 31a79c1

Please sign in to comment.