Skip to content

Commit 897548f

Browse files
committed
feat(keymaps): show all project files including hidden and ignored in <leader>fp mapping
Update the <leader>fp keymap to include hidden and ignored files by setting `no_ignore = true` and customizing `fd_opts`. This allows users to search all files in the project, including those normally excluded.
1 parent c0dda86 commit 897548f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lua/dcai/keymaps/fzfthings.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,11 @@ local fzf_keymap = {
5050
{
5151
'<leader>fp',
5252
function()
53-
fzf.files({ cwd = vim.g.smart_root() })
53+
fzf.files({
54+
cwd = vim.g.smart_root(),
55+
no_ignore = true,
56+
fd_opts = "--color=never --type f --hidden --follow --exclude .git --exclude node_modules"
57+
})
5458
end,
5559
desc = 'project files',
5660
},

0 commit comments

Comments
 (0)