From 8d1bc5fbb714cc43f4ab68b961dfb674ee969c65 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Sun, 9 Apr 2023 21:54:35 +0100 Subject: Reconfigures telescope, adding bindings --- nvim/after/plugin/telescope.lua | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/nvim/after/plugin/telescope.lua b/nvim/after/plugin/telescope.lua index 29f5a62..a004f9d 100644 --- a/nvim/after/plugin/telescope.lua +++ b/nvim/after/plugin/telescope.lua @@ -1,8 +1,16 @@ local builtin = require('telescope.builtin') -vim.keymap.set('n', 'pf', builtin.find_files, {}) -vim.keymap.set('n', '', builtin.git_files, {}) +vim.keymap.set('n', 'ff', builtin.find_files, {}) +vim.keymap.set('n', 'fg', builtin.live_grep, {}) +vim.keymap.set('n', 'fb', builtin.buffers, {}) +vim.keymap.set('n', 'fh', builtin.help_tags, {}) +vim.keymap.set('n', 'fs', builtin.grep_string, {}) +vim.keymap.set('n', 'fc', builtin.command_history, {}) +vim.keymap.set('n', 'fk', builtin.keymaps, {}) +vim.keymap.set('n', 'fl', builtin.diagnostics, {}) +vim.keymap.set('n', 'fo', builtin.builtin, {}) + vim.keymap.set('n', 'ps', function() builtin.grep_string({ search = vim.fn.input("Grep > ") }) end) -vim.keymap.set('n', 'vh', builtin.help_tags, {}) +require("telescope").load_extension("emoji") -- cgit v1.2.3