summaryrefslogtreecommitdiff
path: root/.config/nvim/after/plugin/telescope.lua
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-09-12 12:16:31 +0200
committerThomas Voss <mail@thomasvoss.com> 2023-09-12 12:16:31 +0200
commit24fc98bfaca3f07c90ff33a3bfeb738fd84ff79a (patch)
tree7c5c9c870ed808d5cbee848808c70ff9ec1816c3 /.config/nvim/after/plugin/telescope.lua
parenta5feec43c14bd05e8dd98d24fba7e25fdbb6fd7d (diff)
nvim: Add extensive Neovim configuration
Diffstat (limited to '.config/nvim/after/plugin/telescope.lua')
-rw-r--r--.config/nvim/after/plugin/telescope.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/.config/nvim/after/plugin/telescope.lua b/.config/nvim/after/plugin/telescope.lua
new file mode 100644
index 0000000..a9d9225
--- /dev/null
+++ b/.config/nvim/after/plugin/telescope.lua
@@ -0,0 +1,8 @@
+local builtin = require('telescope.builtin')
+
+--vim.keymap.set('n', '<leader>pf', builtin.git_files, {})
+
+vim.keymap.set('n', '<leader>pf', builtin.find_files, {})
+vim.keymap.set('n', '<leader>ps', function()
+ builtin.grep_string({ search = vim.fn.input('Grep > ') })
+end)