12345678910111213141516171819202122232425262728 |
- local MiniJump = require('mini.jump')
- local Treewalker = require('treewalker')
- -- repeatable f/t
- MiniJump.setup({
- mappings = {
- repeat_jump = '',
- },
- delay = {
- highlight = 10000000,
- },
- })
- -- Treesitter navigation
- Treewalker.setup()
- vim.keymap.set({ 'n', 'v' }, '<C-k>', '<cmd>Treewalker Up<cr>')
- vim.keymap.set({ 'n', 'v' }, '<C-j>', '<cmd>Treewalker Down<cr>')
- vim.keymap.set({ 'n', 'v' }, '<C-h>', '<cmd>Treewalker Left<cr>')
- vim.keymap.set({ 'n', 'v' }, '<C-l>', '<cmd>Treewalker Right<cr>')
- -- jumplist navigation #bracketed
- vim.keymap.set('n', '[f', '<C-O>')
- vim.keymap.set('n', ']f', '<C-I>')
- -- window navigation #bracketed
- vim.keymap.set('n', '[w', '<C-w>W')
- vim.keymap.set('n', ']w', '<C-w>w')
|