From c1d6bc6b4fd5208c7f3df0694f7aab501943981b Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Sun, 13 Aug 2023 08:44:49 +0100 Subject: Adds primeagen neovim configuration --- nvim-primeagen/after/plugin/telescope.lua | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 nvim-primeagen/after/plugin/telescope.lua (limited to 'nvim-primeagen/after/plugin/telescope.lua') 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', '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', 'f-', builtin.oldfiles, {}) + +vim.keymap.set('n', 'ps', function() + builtin.grep_string({ search = vim.fn.input("Grep > ") }) +end) + +require("telescope").load_extension("emoji") -- cgit v1.2.3