From a9e75625c9a1c2dd694f43b2dc443efc3db10839 Mon Sep 17 00:00:00 2001 From: Cody Hiar Date: Thu, 20 Jan 2022 16:28:06 -0700 Subject: Add --- init.lua | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index bc6ac0a..a8dee84 100644 --- a/init.lua +++ b/init.lua @@ -128,7 +128,11 @@ vim.api.nvim_set_keymap('n', ' k', [[(v:count > 1 ? "m'" . v:count : '') . vim.api.nvim_set_keymap('n', ' j', [[(v:count > 1 ? "m'" . v:count : '') . 'j']], { noremap = true }) -- Call Ale Fix vim.api.nvim_set_keymap('n', 'ei', 'ALEFix', { noremap = true }) - +-- Faster quick/fix list nav +vim.api.nvim_set_keymap('n', '[q', "lprev", { noremap = true }) +vim.api.nvim_set_keymap('n', ']q', "lnext", { noremap = true }) +vim.api.nvim_set_keymap('n', '[w', "cprev", { noremap = true }) +vim.api.nvim_set_keymap('n', ']w', "cnext", { noremap = true }) -- Build a custom status line local status_line = { @@ -383,4 +387,21 @@ return require('packer').startup(function() } use 'junegunn/goyo.vim' use 'hashivim/vim-terraform' + use { + 'jremmen/vim-ripgrep', + config = function() + vim.cmd([[ + nnoremap / :call RgSearch() + noremap ea :Rg + function! RgSearch() + call inputsave() + let term = input('Search: ') + call inputrestore() + if !empty(term) + execute "Rg " . term + endif + endfunction + ]]) + end + } end) -- cgit v1.2.3