From 3eaf1b378ca8987b5b62c5d40e3c4c527ef2aea8 Mon Sep 17 00:00:00 2001 From: Jika Date: Mon, 10 Feb 2025 11:18:53 +0100 Subject: [PATCH] Show hidden files in telescope --- nvim/lua/plugins/telescope.lua | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 nvim/lua/plugins/telescope.lua 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/*" }, + }, + } + } +}