aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCody Hiar <cody@hiar.ca>2022-01-24 12:08:10 -0700
committerCody Hiar <cody@hiar.ca>2022-01-24 12:08:10 -0700
commitf3c1bb05ae43eb412dcac19aa5563b891c208f8c (patch)
tree2400779c9400d4ea743774fad030492bd136711e
parenta9e75625c9a1c2dd694f43b2dc443efc3db10839 (diff)
Update quicklist/changelist navs
-rw-r--r--init.lua11
1 files 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', '<esc>', { 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', '<leader>co', '<cmd>copen<cr>', { noremap = true })
vim.api.nvim_set_keymap('n', '<leader>cc', '<cmd>cclose<cr>', { noremap = true })
+vim.api.nvim_set_keymap('n', '<leader>cp', "<cmd>cprev<cr>", { noremap = true })
+vim.api.nvim_set_keymap('n', '<leader>cn', "<cmd>cnext<cr>", { noremap = true })
+vim.api.nvim_set_keymap('n', '<leader>lp', "<cmd>lprev<cr>", { noremap = true })
+vim.api.nvim_set_keymap('n', '<leader>ln', "<cmd>lnext<cr>", { noremap = true })
-- Visually select line without ending
vim.api.nvim_set_keymap('n', '<leader>v', '^v$h', { noremap = true })
-- Ledger Shortcuts
@@ -128,11 +130,6 @@ vim.api.nvim_set_keymap('n', '<expr> k', [[(v:count > 1 ? "m'" . v:count : '') .
vim.api.nvim_set_keymap('n', '<expr> j', [[(v:count > 1 ? "m'" . v:count : '') . 'j']], { noremap = true })
-- Call Ale Fix
vim.api.nvim_set_keymap('n', '<leader>ei', '<cmd>ALEFix<cr>', { noremap = true })
--- Faster quick/fix list nav
-vim.api.nvim_set_keymap('n', '[q', "<cmd>lprev<cr>", { noremap = true })
-vim.api.nvim_set_keymap('n', ']q', "<cmd>lnext<cr>", { noremap = true })
-vim.api.nvim_set_keymap('n', '[w', "<cmd>cprev<cr>", { noremap = true })
-vim.api.nvim_set_keymap('n', ']w', "<cmd>cnext<cr>", { noremap = true })
-- Build a custom status line
local status_line = {