Add Rg and Grep commands for Telescope

This commit is contained in:
ViViDboarder 2021-09-16 13:32:45 -07:00
parent 7afc5f9903
commit 453a25f5da

View File

@ -30,6 +30,9 @@ local function config_telescope()
vim.api.nvim_set_keymap("n", "<leader>t", "<cmd>Telescope current_buffer_tags<CR>", opts) vim.api.nvim_set_keymap("n", "<leader>t", "<cmd>Telescope current_buffer_tags<CR>", opts)
vim.api.nvim_set_keymap("n", "<leader>ft", "<cmd>Telescope tags<CR>", opts) vim.api.nvim_set_keymap("n", "<leader>ft", "<cmd>Telescope tags<CR>", opts)
vim.api.nvim_set_keymap("n", "<leader>fg", "<cmd>Telescope live_grep<CR>", opts) vim.api.nvim_set_keymap("n", "<leader>fg", "<cmd>Telescope live_grep<CR>", opts)
vim.cmd "command Rg Telescope live_grep"
vim.cmd "command Grep Telescope live_grep"
end end
config_telescope() config_telescope()