diff --git a/nvim/lua/plugins/telescope.lua b/nvim/lua/plugins/telescope.lua new file mode 100644 index 0000000..1259a01 --- /dev/null +++ b/nvim/lua/plugins/telescope.lua @@ -0,0 +1,24 @@ +return { + 'nvim-telescope/telescope.nvim', + opts = { + defaults = { + vimgrep_arguments = { + "rg", + "--color=never", + "--no-heading", + "--with-filename", + "--line-number", + "--column", + "--smart-case", + "--hidden","--glob", + "!**/.git/*" + }, + }, + pickers = { + find_files = { + -- `hidden = true` will still show the inside of `.git/` as it's not `.gitignore`d. + find_command = { "rg", "--files", "--hidden", "--glob", "!**/.git/*" }, + }, + } + } +}