Update telescope to include hidden directories (i.e. .github) except .git

This commit is contained in:
Daniel McKnight 2026-05-12 10:30:58 -07:00
parent 566fe1d486
commit de648782bb

View file

@ -1,22 +1,35 @@
return { return {
{ {
'nvim-telescope/telescope.nvim', tag = '0.1.8', "nvim-telescope/telescope.nvim",
dependencies = { 'nvim-lua/plenary.nvim' } tag = "0.1.8",
dependencies = { "nvim-lua/plenary.nvim" },
}, },
{ {
'nvim-telescope/telescope-ui-select.nvim', "nvim-telescope/telescope-ui-select.nvim",
config = function() config = function()
require("telescope").setup({ require("telescope").setup({
defaults = {
vimgrep_arguments = {
"rg",
"--color=never",
"--no-heading",
"--with-filename",
"--line-number",
"--column",
"--smart-case",
"--hidden",
"--glob=!.git/*",
},
},
extensions = { extensions = {
["ui-select"] = { ["ui-select"] = {
require("telescope.themes").get_dropdown { require("telescope.themes").get_dropdown({
-- even more opts -- even more opts
} }),
} },
} },
}) })
require("telescope").load_extension("ui-select") require("telescope").load_extension("ui-select")
end end,
},
} }
}