From 453a25f5da7c5237e852620a491143da347ff1ae Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Thu, 16 Sep 2021 13:32:45 -0700 Subject: [PATCH] Add Rg and Grep commands for Telescope --- neovim/lua/plugins/telescope.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/neovim/lua/plugins/telescope.lua b/neovim/lua/plugins/telescope.lua index c192531..224ba33 100644 --- a/neovim/lua/plugins/telescope.lua +++ b/neovim/lua/plugins/telescope.lua @@ -30,6 +30,9 @@ local function config_telescope() vim.api.nvim_set_keymap("n", "t", "Telescope current_buffer_tags", opts) vim.api.nvim_set_keymap("n", "ft", "Telescope tags", opts) vim.api.nvim_set_keymap("n", "fg", "Telescope live_grep", opts) + + vim.cmd "command Rg Telescope live_grep" + vim.cmd "command Grep Telescope live_grep" end config_telescope()