فهرست منبع

nixpkgs/neovim: map ]] and [[ to ; and ,

Thomas Dy 5 ماه پیش
والد
کامیت
2e884fd1a1
1فایلهای تغییر یافته به همراه6 افزوده شده و 0 حذف شده
  1. 6 0
      .config/nixpkgs/neovim/config/lua/user/plugins/navigation.lua

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

@@ -7,10 +7,16 @@ demicolon.setup({
     disabled_keys = {
       -- this is paste with indent, not a motion
       'p',
+      -- we bind these to ; and ,
+      ']',
+      '[',
     }
   }
 })
 
+vim.keymap.set('n', ']]', ';', { remap = true })
+vim.keymap.set('n', '[[', ',', { remap = true })
+
 -- Treesitter navigation
 Treewalker.setup()