Change: telescope find_files include hidden files

This commit is contained in:
2024-08-29 00:28:32 +05:30
parent ae9c71664e
commit 696c0f595f

View File

@@ -25,7 +25,12 @@ keymap("n", "<C-Right>", ":vertical resize +2<CR>", opts)
-- Telescope fuzzy finder -- Telescope fuzzy finder
local telescope_status_ok, telescope = pcall(require, "telescope.builtin") local telescope_status_ok, telescope = pcall(require, "telescope.builtin")
if telescope_status_ok then if telescope_status_ok then
keymap("n", "<Leader>ff", telescope.find_files, {}) keymap(
"n",
"<Leader>ff",
"<cmd>lua require'telescope.builtin'.find_files({ find_command = {'rg', '--files', '--hidden', '--no-ignore', '-g', '!.git' }})<cr>",
{}
)
keymap("n", "<Leader>ll", telescope.live_grep, {}) keymap("n", "<Leader>ll", telescope.live_grep, {})
keymap("n", "<Leader>bb", telescope.buffers, {}) keymap("n", "<Leader>bb", telescope.buffers, {})
keymap("n", "<Leader>tt", telescope.treesitter, {}) keymap("n", "<Leader>tt", telescope.treesitter, {})