From f3c1bb05ae43eb412dcac19aa5563b891c208f8c Mon Sep 17 00:00:00 2001 From: Cody Hiar Date: Mon, 24 Jan 2022 12:08:10 -0700 Subject: Update quicklist/changelist navs --- init.lua | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/init.lua b/init.lua index a8dee84..b8b5d45 100644 --- a/init.lua +++ b/init.lua @@ -98,10 +98,12 @@ vim.api.nvim_set_keymap('i', 'jj', '', { noremap = true }) -- Visually select last copied text vim.api.nvim_set_keymap('n', 'gp', "`[v`]", { noremap = true }) -- Changelist navigation -vim.api.nvim_set_keymap('n', '_', '[c', { noremap = true }) -vim.api.nvim_set_keymap('n', '=', ']c', { noremap = true }) vim.api.nvim_set_keymap('n', 'co', 'copen', { noremap = true }) vim.api.nvim_set_keymap('n', 'cc', 'cclose', { noremap = true }) +vim.api.nvim_set_keymap('n', 'cp', "cprev", { noremap = true }) +vim.api.nvim_set_keymap('n', 'cn', "cnext", { noremap = true }) +vim.api.nvim_set_keymap('n', 'lp', "lprev", { noremap = true }) +vim.api.nvim_set_keymap('n', 'ln', "lnext", { noremap = true }) -- Visually select line without ending vim.api.nvim_set_keymap('n', 'v', '^v$h', { noremap = true }) -- Ledger Shortcuts @@ -128,11 +130,6 @@ 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 = { -- cgit v1.2.3