aboutsummaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'init.lua')
-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 = {