add hop.nvim plugin
This commit is contained in:
@ -20,6 +20,15 @@ vim.keymap.set('n', '<C-j>', '<C-w>j', {desc = 'window navigation', silent = tru
|
||||
vim.keymap.set('n', '<C-k>', '<C-w>k', {desc = 'window navigation', silent = true})
|
||||
vim.keymap.set('n', '<C-l>', '<C-w>l', {desc = 'window navigation', silent = true})
|
||||
|
||||
-- toggleterm
|
||||
-- todo: maybe can use these kybindings simultaneously with hidden attribute
|
||||
-- https://github.com/akinsho/toggleterm.nvim/issues/322
|
||||
vim.keymap.set('n', '<C-x>', '<cmd>ToggleTerm direction=float<cr>', {desc = 'floating terminal'})
|
||||
vim.keymap.set('t', '<C-x>', 'exit<CR>', {desc = 'floating terminal'})
|
||||
|
||||
vim.keymap.set('n', '<C-\\>', '<cmd>ToggleTerm direction=horizontal<cr>', {desc = 'horizontal terminal'})
|
||||
vim.keymap.set('t', '<C-\\>', '<Cmd>ToggleTerm<CR>', {desc = 'horizontal terminal'})
|
||||
|
||||
-- vsplit
|
||||
vim.keymap.set('n', '<|>', ':vsplit<CR>', {desc = 'Vertical split', remap = true})
|
||||
|
||||
|
Reference in New Issue
Block a user