2023-10-21 13:05:20 +00:00
|
|
|
local builtin = require('telescope.builtin')
|
2024-01-14 16:40:13 +00:00
|
|
|
local trouble = require('trouble.providers.telescope')
|
2023-11-06 20:11:34 +00:00
|
|
|
|
|
|
|
-- File pickers
|
|
|
|
vim.keymap.set('n', '<leader>pf', "<cmd>Telescope find_files hidden=true<CR>", {})
|
|
|
|
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, {})
|
2024-01-14 16:40:13 +00:00
|
|
|
vim.keymap.set('n', '<leader>gs', builtin.git_stash, {})
|
|
|
|
|
|
|
|
-- LSP pickers
|
|
|
|
vim.keymap.set('n', '<leader>pe', trouble.open_with_trouble, {})
|
2024-03-03 23:27:09 +00:00
|
|
|
|
|
|
|
-- Help pickers
|
|
|
|
vim.keymap.set('n', '<leader>sh', builtin.help_tags, {})
|
|
|
|
vim.api.nvim_create_user_command('Help',function()
|
|
|
|
builtin.help_tags()
|
|
|
|
end,{})
|