Browse Source

nixpkgs/neovim: allow grepping hidden files

Thomas Dy 1 month ago
parent
commit
082162f1b0
1 changed files with 14 additions and 0 deletions
  1. 14 0
      .config/nixpkgs/neovim/plugins.lua

+ 14 - 0
.config/nixpkgs/neovim/plugins.lua

@@ -42,6 +42,20 @@ require('telescope').setup({
       timeout = 500,
       timeout = 500,
     },
     },
 
 
+    vimgrep_arguments = {
+      -- defaults
+      "rg",
+      "--color=never",
+      "--no-heading",
+      "--with-filename",
+      "--line-number",
+      "--column",
+      "--smart-case",
+      -- search "hidden" files except git folder
+      "--hidden",
+      "--iglob=!.git"
+    },
+
     -- ignore things we're likely not to edit
     -- ignore things we're likely not to edit
     file_ignore_patterns = {
     file_ignore_patterns = {
       "%.zip$",
       "%.zip$",