summaryrefslogtreecommitdiffstats
path: root/nvim-primeagen/after/plugin/telescope.lua
diff options
context:
space:
mode:
Diffstat (limited to 'nvim-primeagen/after/plugin/telescope.lua')
-rw-r--r--nvim-primeagen/after/plugin/telescope.lua17
1 files changed, 17 insertions, 0 deletions
diff --git a/nvim-primeagen/after/plugin/telescope.lua b/nvim-primeagen/after/plugin/telescope.lua
new file mode 100644
index 0000000..d11622b
--- /dev/null
+++ b/nvim-primeagen/after/plugin/telescope.lua
@@ -0,0 +1,17 @@
+local builtin = require('telescope.builtin')
+vim.keymap.set('n', '<leader>ff', builtin.find_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>f-', builtin.oldfiles, {})
+
+vim.keymap.set('n', '<leader>ps', function()
+ builtin.grep_string({ search = vim.fn.input("Grep > ") })
+end)
+
+require("telescope").load_extension("emoji")