Fix telescope find all files no ignore

This commit is contained in:
Simon Lasbrugnas 2023-08-08 16:14:56 +02:00
parent fcdbd5be09
commit b67f002a09

View file

@ -15,8 +15,10 @@ local function custom_git_files()
end
-- Keybindings
vim.keymap.set('n', '<leader>pf', builtin.find_files, {})
vim.keymap.set('n', '<C-p>', custom_git_files, {}) -- Use the custom function here
vim.keymap.set('n', '<leader>pf', function()
builtin.find_files({ no_ignore = true, hidden = true })
end)
vim.keymap.set('n', '<C-p>', custom_git_files, {})
vim.keymap.set('n', '<leader>ps', function()
builtin.grep_string({ search = vim.fn.input("Grep > ") })
end)