Add <leader>pf in telescope for Project Find (find all files)

This commit is contained in:
Simon Lasbrugnas 2023-08-08 16:02:39 +02:00
parent 6d7a054198
commit fcdbd5be09

View file

@ -15,6 +15,7 @@ local function custom_git_files()
end end
-- Keybindings -- 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', '<C-p>', custom_git_files, {}) -- Use the custom function here
vim.keymap.set('n', '<leader>ps', function() vim.keymap.set('n', '<leader>ps', function()
builtin.grep_string({ search = vim.fn.input("Grep > ") }) builtin.grep_string({ search = vim.fn.input("Grep > ") })