소스 검색

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