From c096fd6c86177a2f0f91296cce9eb545a624ed98 Mon Sep 17 00:00:00 2001 From: Subhadip Ghosh Date: Thu, 24 Oct 2024 14:06:39 +0530 Subject: [PATCH] feat: add quickfix keymap --- init.lua | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/init.lua b/init.lua index a498cc09..53de4876 100644 --- a/init.lua +++ b/init.lua @@ -183,6 +183,11 @@ vim.keymap.set('n', 'tb', ':Telescope buffers', { desc = 'Open Buffe -- or just use to exit terminal mode vim.keymap.set('t', '', '', { desc = 'Exit terminal mode' }) +vim.keymap.set('n', 'cn', ':cnext', { desc = 'next in quickfix list' }) +vim.keymap.set('n', 'cp', ':cprev', { desc = 'previous in quickfix list' }) +vim.keymap.set('n', 'cdo', ':cdo ', { desc = 'do quick action to all' }) +vim.keymap.set('n', 'gp', ':grep ', { desc = 'vim grep' }) + -- TIP: Disable arrow keys in normal mode -- vim.keymap.set('n', '', 'echo "Use h to move!!"') -- vim.keymap.set('n', '', 'echo "Use l to move!!"') @@ -972,8 +977,8 @@ require('lazy').setup({ -- priority = 1000, -- make sure to load this before all the other start plugins config = function() -- load the colorscheme here - -- vim.o.background = 'dark' - -- vim.cmd.colorscheme 'night-owl' + vim.o.background = 'dark' + vim.cmd.colorscheme 'night-owl' end, }, { @@ -1039,14 +1044,14 @@ require('lazy').setup({ -- vim.cmd.colorscheme 'vscode' -- end, }, - { - 'Yazeed1s/minimal.nvim', - lazy = false, - priority = 1001, - init = function() - vim.cmd.colorscheme 'minimal' - end, - }, + -- { + -- 'Yazeed1s/minimal.nvim', + -- lazy = false, + -- priority = 1001, + -- init = function() + -- vim.cmd.colorscheme 'minimal' + -- end, + -- }, -- The following two comments only work if you have downloaded the kickstart repo, not just copy pasted the -- init.lua. If you want these files, they are in the repository, so you can just download them and