bufferline (for tabs) + telescope ignore node + temp files

This commit is contained in:
Harivansh Rathi 2025-12-05 10:43:32 -05:00
parent a79a9a6bff
commit c2df94d9f3
3 changed files with 62 additions and 19 deletions

View file

@ -12,6 +12,27 @@ return {
config = function()
require("telescope").setup({
defaults = {
file_ignore_patterns = {
"node_modules",
".next",
".git",
"dist",
"build",
"%.lock",
},
vimgrep_arguments = {
"rg",
"--color=never",
"--no-heading",
"--with-filename",
"--line-number",
"--column",
"--smart-case",
"--hidden",
"--glob=!.git/",
"--glob=!node_modules/",
"--glob=!.next/",
},
mappings = {
i = {
["<C-j>"] = "move_selection_next",
@ -19,6 +40,12 @@ return {
},
},
},
pickers = {
find_files = {
hidden = true,
find_command = { "fd", "--type", "f", "--strip-cwd-prefix", "--hidden", "--exclude", ".git", "--exclude", "node_modules", "--exclude", ".next" },
},
},
})
end,
}