mirror of
https://github.com/harivansh-afk/nvim.git
synced 2026-04-15 16:04:05 +00:00
bufferline (for tabs) + telescope ignore node + temp files
This commit is contained in:
parent
a79a9a6bff
commit
c2df94d9f3
3 changed files with 62 additions and 19 deletions
|
|
@ -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,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue