From 4c4cb587e6f24dfe669c502b609dc44a76533810 Mon Sep 17 00:00:00 2001 From: Chris Erin Date: Sat, 28 May 2022 08:53:46 -0500 Subject: [PATCH] fix(nvim): tighten n-mode mappings for ripgrep --- config/nvim/lua/core/mappings.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/nvim/lua/core/mappings.lua b/config/nvim/lua/core/mappings.lua index 86ca70b4..f0ef81e6 100644 --- a/config/nvim/lua/core/mappings.lua +++ b/config/nvim/lua/core/mappings.lua @@ -245,13 +245,13 @@ M.ripgrep_mappings = function() -- Grep project for selection with Rg vmap { 'gr', 'y :Rg "' } -- Grep project for word under the cursor with Rg - nmap { 'gr :Rg', '' } + nmap { 'gr', ':Rg ' } -- alias for above -- Grep project for selection with Rg vmap { 'rg', 'y :Rg "' } -- Grep project for word under the cursor with Rg - nmap { 'rg :Rg', '' } + nmap { 'rg', ':Rg ' } -- Grep selection with Rg (excluding tests and migrations) vmap { 'gt', "y :Rg \" -g '!*/**/test/*' -g '!*/**/migrations/*'" }