aboutsummaryrefslogblamecommitdiffstats
path: root/nvim-primeagen/after/plugin/telescope.lua
blob: a8ab4764d11bfb4b8419e11b00fbad02105865b5 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
                                            
                                                         
                                                   








                                                              


                                                                 
 
                                            
local builtin = require('telescope.builtin')
vim.keymap.set('n', '<leader>ff', builtin.find_files, {})
vim.keymap.set('n', '<C-p>', builtin.git_files, {})
vim.keymap.set('n', '<leader>fg', builtin.live_grep, {})
vim.keymap.set('n', '<leader>fb', builtin.buffers, {})
vim.keymap.set('n', '<leader>fh', builtin.help_tags, {})
vim.keymap.set('n', '<leader>fs', builtin.grep_string, {})
vim.keymap.set('n', '<leader>fc', builtin.command_history, {})
vim.keymap.set('n', '<leader>fk', builtin.keymaps, {})
vim.keymap.set('n', '<leader>fl', builtin.diagnostics, {})
vim.keymap.set('n', '<leader>fo', builtin.builtin, {})

vim.keymap.set('n', '<leader>ps', function()
	builtin.grep_string({ search = vim.fn.input("Grep > ") })
end)

require("telescope").load_extension("emoji")