12345678910111213141516171819202122232425262728 |
- local demicolon = require('demicolon')
- local Treewalker = require('treewalker')
- -- ,/; for bracket motions too
- demicolon.setup({
- keymaps = {
- disabled_keys = {
- -- this is paste with indent, not a motion
- 'p',
- }
- }
- })
- -- 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')
|