1
0
Эх сурвалжийг харах

nixpkgs/neovim: enable mini.bracketed undo

Thomas Dy 5 сар өмнө
parent
commit
46b2ab0e86

+ 22 - 0
.config/nixpkgs/neovim/config/lua/user/plugins/navigation.lua

@@ -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()