|
|
@@ -1,4 +1,5 @@
|
|
|
local demicolon = require('demicolon')
|
|
|
+local MiniBracketed = require('mini.bracketed')
|
|
|
local Treewalker = require('treewalker')
|
|
|
|
|
|
-- ,/; for bracket motions too
|
|
|
@@ -17,6 +18,27 @@ demicolon.setup({
|
|
|
vim.keymap.set('n', ']]', ';', { remap = true })
|
|
|
vim.keymap.set('n', '[[', ',', { remap = true })
|
|
|
|
|
|
+-- more bracket motions
|
|
|
+MiniBracketed.setup({
|
|
|
+ -- some of our mappings and the builtin mappings overlap with these so enable
|
|
|
+ -- only those we actually want to use
|
|
|
+ buffer = { suffix = '' },
|
|
|
+ comment = { suffix = '' },
|
|
|
+ conflict = { suffix = '' },
|
|
|
+ diagnostic = { suffix = '' },
|
|
|
+ file = { suffix = '' },
|
|
|
+ indent = { suffix = '' },
|
|
|
+ jump = { suffix = '' },
|
|
|
+ location = { suffix = '' },
|
|
|
+ oldfile = { suffix = '' },
|
|
|
+ quickfix = { suffix = '' },
|
|
|
+ treesitter = { suffix = '' },
|
|
|
+ window = { suffix = '' },
|
|
|
+ yank = { suffix = '' },
|
|
|
+
|
|
|
+ undo = { suffix = 'u' },
|
|
|
+})
|
|
|
+
|
|
|
-- Treesitter navigation
|
|
|
Treewalker.setup()
|
|
|
|