summaryrefslogtreecommitdiffstats
path: root/lua/Nanderty/Plugins/telescope.lua
diff options
context:
space:
mode:
authorNanderty <psopka@sopka.ch>2023-03-12 15:07:53 +0100
committerNanderty <psopka@sopka.ch>2023-03-12 15:07:53 +0100
commitc87bea68983be1a4ab0bdce3bb2ac19ad35f0a81 (patch)
tree245b4cca0fb59a5abdff645fa8bd145a021a7908 /lua/Nanderty/Plugins/telescope.lua
downloadneovim-config-c87bea68983be1a4ab0bdce3bb2ac19ad35f0a81.tar.gz
neovim-config-c87bea68983be1a4ab0bdce3bb2ac19ad35f0a81.tar.bz2
neovim-config-c87bea68983be1a4ab0bdce3bb2ac19ad35f0a81.zip
neovim setup
Diffstat (limited to 'lua/Nanderty/Plugins/telescope.lua')
-rw-r--r--lua/Nanderty/Plugins/telescope.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/lua/Nanderty/Plugins/telescope.lua b/lua/Nanderty/Plugins/telescope.lua
new file mode 100644
index 0000000..4806008
--- /dev/null
+++ b/lua/Nanderty/Plugins/telescope.lua
@@ -0,0 +1,6 @@
+local builtin = require('telescope.builtin')
+vim.keymap.set('n', '<leader>pf', builtin.find_files, {})
+vim.keymap.set('n', '<C-p>', builtin.git_files, {})
+vim.keymap.set('n', '<leader>ps', function()
+ builtin.grep_string({ search = vim.fn.input("Grep > ") });
+end)