fix(neovim): Remove rust & javascript downloaded packages from searches

This commit is contained in:
Pratik Tripathy
2025-07-28 10:55:51 +05:30
parent dd9246cda7
commit b132395c0a
2 changed files with 9 additions and 3 deletions

View File

@@ -113,6 +113,8 @@ return {
"--column",
"--hidden", -- include hidden files
"--glob=!.git", -- exclude .git directory
"--glob=!target",
"--glob=!node_modules",
},
},
signs = false,
@@ -136,8 +138,8 @@ return {
desc = "Previous todo comment",
},
{ "<leader>df", "<cmd>TodoTelescope keywords=FIX,FIXME<cr>", desc = "FIXME: Tags" },
{ "<leader>dt", "<cmd>TodoTelescope keywords=TODO<cr>", desc = "Project TODOs" },
{ "<leader>df", "<cmd>TodoTelescope keywords=FIX,FIXME,BUG<cr>", desc = "FIXME: Tags" },
{ "<leader>dt", "<cmd>TodoTelescope keywords=TODO,FIX,FIXME,BUG<cr>", desc = "Project TODOs" },
{ "<leader>dT", "<cmd>TodoTelescope<cr>", desc = "All tags: FIX, NOTE, TIP, TODO, WARN" },
},
},

View File

@@ -126,6 +126,10 @@ return {
table.insert(vimgrep_arguments, "--glob")
-- And to ignore .git directory. Needed since its not `.gitignore`d
table.insert(vimgrep_arguments, "!**/.git/*")
table.insert(vimgrep_arguments, "--glob")
table.insert(vimgrep_arguments, "!**/node_modules/*")
table.insert(vimgrep_arguments, "--glob")
table.insert(vimgrep_arguments, "!**/target/*")
require("telescope").setup({
defaults = {
@@ -145,7 +149,7 @@ return {
find_files = {
hidden = true,
-- Redoing the vimgrep_arguments changes for find_files as well
find_command = { "rg", "--files", "--hidden", "--glob", "!**/.git/*" },
find_command = { "rg", "--files", "--hidden", "--glob", "!**/.git/*", "--glob", "!**/node_modules/*", "--glob", "!**/target/*" },
},
},
extensions = {