telescope: add a plugin to use Ag
- Adds a plugin to use Ag The Silversearcher with Telescope. - Improves some comments. Co-Authored-by: iGor milhit <igor@milhit.ch>
parent
f0f0bc6a47
commit
cbf304d45c
10
init.lua
10
init.lua
|
@ -198,8 +198,13 @@ require('lazy').setup({
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
-- Extension to telescope to use Ag (or ripgrep) to filter results
|
||||||
|
{
|
||||||
|
'kelly-lin/telescope-ag'
|
||||||
|
},
|
||||||
|
|
||||||
|
-- Allow to search for snippets
|
||||||
{
|
{
|
||||||
-- Allow to search for snippets
|
|
||||||
'benfowler/telescope-luasnip.nvim'
|
'benfowler/telescope-luasnip.nvim'
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -328,7 +333,10 @@ require('telescope').setup {
|
||||||
|
|
||||||
-- Enable telescope fzf native, if installed
|
-- Enable telescope fzf native, if installed
|
||||||
pcall(require('telescope').load_extension, 'fzf')
|
pcall(require('telescope').load_extension, 'fzf')
|
||||||
|
-- Enable telescope luasnip extension, if installed
|
||||||
pcall(require('telescope').load_extension, 'luasnip')
|
pcall(require('telescope').load_extension, 'luasnip')
|
||||||
|
-- Enable telescope-ag extension, if installed
|
||||||
|
pcall(require('telescope').load_extension, 'ag')
|
||||||
|
|
||||||
-- See `:help telescope.builtin`
|
-- See `:help telescope.builtin`
|
||||||
vim.keymap.set('n', '<leader>?', require('telescope.builtin').oldfiles, { desc = '[?] Find recently opened files' })
|
vim.keymap.set('n', '<leader>?', require('telescope.builtin').oldfiles, { desc = '[?] Find recently opened files' })
|
||||||
|
|
|
@ -23,7 +23,7 @@ return {
|
||||||
width = 85,
|
width = 85,
|
||||||
height = .8,
|
height = .8,
|
||||||
options = {
|
options = {
|
||||||
-- Disable line numbering.
|
-- Disable line numbering, signcolumn and colorcolumn.
|
||||||
number = false,
|
number = false,
|
||||||
signcolumn = "no",
|
signcolumn = "no",
|
||||||
colorcolumn = "0"
|
colorcolumn = "0"
|
||||||
|
|
Loading…
Reference in New Issue