mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2024-11-18 01:36:27 +00:00
Add Rg and Grep commands for Telescope
This commit is contained in:
parent
7afc5f9903
commit
453a25f5da
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user