explicitly configure ripgrep for telescope
This commit is contained in:
parent
ca0b58aeb4
commit
15bc48a6c5
1 changed files with 11 additions and 0 deletions
|
@ -1,5 +1,16 @@
|
||||||
|
local telescope = require('telescope')
|
||||||
local builtin = require('telescope.builtin')
|
local builtin = require('telescope.builtin')
|
||||||
|
|
||||||
|
telescope.setup {
|
||||||
|
defaults = {
|
||||||
|
vimgrep_arguments = { 'rg',
|
||||||
|
'--hidden', '--color=never', '--no-heading',
|
||||||
|
'--with-filename', '--line-number',
|
||||||
|
'--column', '--smart-case',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
local find_files_workspace = function()
|
local find_files_workspace = function()
|
||||||
builtin.find_files({
|
builtin.find_files({
|
||||||
search_dirs = vim.lsp.buf.list_workspace_folders(),
|
search_dirs = vim.lsp.buf.list_workspace_folders(),
|
||||||
|
|
Reference in a new issue