summaryrefslogtreecommitdiff
path: root/.config/nvim/plug-config/telescope.vim
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/plug-config/telescope.vim')
-rw-r--r--.config/nvim/plug-config/telescope.vim14
1 files changed, 14 insertions, 0 deletions
diff --git a/.config/nvim/plug-config/telescope.vim b/.config/nvim/plug-config/telescope.vim
new file mode 100644
index 0000000..26ae819
--- /dev/null
+++ b/.config/nvim/plug-config/telescope.vim
@@ -0,0 +1,14 @@
+" Find files using Telescope command-line sugar.
+nnoremap <Leader>ff <cmd>Telescope find_files<cr>
+nnoremap <Leader>fg <cmd>Telescope live_grep<cr>
+nnoremap <Leader>fb <cmd>Telescope buffers<cr>
+nnoremap <Leader>fh <cmd>Telescope help_tags<cr>
+
+" Theme
+nnoremap <Leader>f :lua require'telescope.builtin'.find_files(require('telescope.themes').get_dropdown({}))<cr>
+
+" Using lua functions
+"nnoremap <leader>ff <cmd>lua require('telescope.builtin').find_files()<cr>
+"nnoremap <leader>fg <cmd>lua require('telescope.builtin').live_grep()<cr>
+"nnoremap <leader>fb <cmd>lua require('telescope.builtin').buffers()<cr>
+"nnoremap <leader>fh <cmd>lua require('telescope.builtin').help_tags()<cr>