From 2e1a7c865d62fdd4c20d9036023461e3849540b7 Mon Sep 17 00:00:00 2001 From: He4eT Date: Tue, 11 Jul 2023 17:18:18 +0300 Subject: [PATCH] nvim: update fzf-lua ripgrep setup --- nvim/init.lua | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/nvim/init.lua b/nvim/init.lua index e5fad6e..58510c9 100644 --- a/nvim/init.lua +++ b/nvim/init.lua @@ -285,14 +285,19 @@ fzf.setup({ syntax_limit_b = 1024 * 64, -- syntax limit (bytes), 0=nolimit } }, - grep = { - rg_opts = '--vimgrep --smart-case --max-columns=512', - file_ignore_patterns = { - '^node_modules/', - '/node_modules/', - '^.git/', - '^.yarn/' - }, + }, + grep = { + rg_opts = '--vimgrep --smart-case --max-columns=512' .. + ' --color=ansi' .. + ' --colors path:fg:yellow' .. + ' --colors line:fg:green' .. + ' --colors column:fg:blue' .. + ' --colors match:fg:red'; + file_ignore_patterns = { + '^node_modules/', + '/node_modules/', + '^.git/', + '^.yarn/' }, }, fzf_opts = {