From 15bc48a6c59640c68c5b2f37bf955edcce7ff379 Mon Sep 17 00:00:00 2001 From: Vladan Popovic Date: Mon, 18 Dec 2023 14:27:58 +0100 Subject: [PATCH] explicitly configure ripgrep for telescope --- lua/plugins/telescope.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lua/plugins/telescope.lua b/lua/plugins/telescope.lua index 8cde6b1..ada75cc 100644 --- a/lua/plugins/telescope.lua +++ b/lua/plugins/telescope.lua @@ -1,5 +1,16 @@ +local telescope = require('telescope') 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() builtin.find_files({ search_dirs = vim.lsp.buf.list_workspace_folders(),