chore: remove bracket functions because they are default mappings
This commit is contained in:
@@ -125,10 +125,6 @@ nmap_leader('<Tab>d', vim.cmd.tabclose, 'Close tab')
|
||||
nmap_leader('<Tab>]', vim.cmd.tabnext, 'Next tab')
|
||||
nmap_leader('<Tab>[', vim.cmd.tabprevious, 'Previous tab')
|
||||
|
||||
-- Brackets
|
||||
vim.keymap.set('n', ']d', function() vim.diagnostic.jump({ count = 1 }) end, { desc = 'Next diagnostic' })
|
||||
vim.keymap.set('n', '[d', function() vim.diagnostic.jump({ count = -1 }) end, { desc = 'Previous diagnostic' })
|
||||
|
||||
-- Overwrites
|
||||
vim.keymap.set('n', '<Esc>', vim.cmd.nohlsearch, { desc = 'Clear highlights', silent = true })
|
||||
vim.keymap.set('t', '<C-w>', '<C-\\><C-n><C-w>', { desc = 'Terminal window navigation', silent = true })
|
||||
|
||||
Reference in New Issue
Block a user