disable some semi-duplicated / extremely similar keymaps

This commit is contained in:
Gered 2024-09-03 20:23:16 -04:00
parent 2a4ab0d507
commit e57d86d6e2
2 changed files with 4 additions and 2 deletions

View file

@ -6,7 +6,8 @@
vim.keymap.set('n', '<Esc>', '<cmd>nohlsearch<CR>')
-- Diagnostic keymaps
vim.keymap.set('n', '<leader>q', vim.diagnostic.setloclist, { desc = 'Open diagnostic [Q]uickfix list' })
-- NOTE: disabled: use Trouble keybindings instead
-- vim.keymap.set('n', '<leader>q', vim.diagnostic.setloclist, { desc = 'Open diagnostic [Q]uickfix list' })
-- Exit terminal mode in the builtin terminal with a shortcut that is a bit easier
-- for people to discover. Otherwise, you normally need to press <C-\><C-n>, which

View file

@ -14,7 +14,8 @@ return {
group = vim.api.nvim_create_augroup('kickstart-termopen-setkeymaps', { clear = true }),
callback = function()
local opts = { buffer = 0 }
vim.keymap.set('t', '<esc>', [[<C-\><C-n>]], opts) -- <Esc> to exit out of "Terminal" mode
-- NOTE: disabled: keymaps.lua has another similar global keybinding for this for all terminals
-- vim.keymap.set('t', '<esc>', [[<C-\><C-n>]], opts) -- <Esc> to exit out of "Terminal" mode
end,
})
end,