2023-10-21 13:05:20 +00:00
|
|
|
local builtin = require('telescope.builtin')
|
2023-11-06 20:11:34 +00:00
|
|
|
|
|
|
|
-- File pickers
|
|
|
|
vim.keymap.set('n', '<leader>pf', "<cmd>Telescope find_files hidden=true<CR>", {})
|
2023-10-21 13:05:20 +00:00
|
|
|
vim.keymap.set('n', '<C-p>', builtin.git_files, {})
|
2023-11-06 20:11:34 +00:00
|
|
|
vim.keymap.set('n', '<leader>pg', builtin.live_grep, {})
|
2023-10-21 13:05:20 +00:00
|
|
|
vim.keymap.set('n', '<leader>ps', function()
|
2023-11-06 20:11:34 +00:00
|
|
|
builtin.grep_string({ search = vim.fn.input("Grep > ") });
|
2023-10-21 13:05:20 +00:00
|
|
|
end)
|
|
|
|
|
2023-11-06 20:11:34 +00:00
|
|
|
-- Git pickers
|
|
|
|
vim.keymap.set('n', '<leader>gc', builtin.git_commits, {})
|
|
|
|
vim.keymap.set('n', '<leader>gs', builtin.git_status, {})
|