1
0

2 Коммитууд 864f586aa0 ... 9fbcdd52d9

Эзэн SHA1 Мессеж Огноо
  Thomas Dy 9fbcdd52d9 nixpkgs/neovim: enable mini.operators 1 сар өмнө
  Thomas Dy 5195b5f1be nixpkgs/neovim: use demicomma for repeating motions 1 сар өмнө

+ 15 - 0
.config/nixpkgs/neovim/config/lua/user/plugins/editing.lua

@@ -1,6 +1,7 @@
 local MiniAi = require('mini.ai')
 local MiniAlign = require('mini.align')
 local MiniComment = require('mini.comment')
+local MiniOperators = require('mini.operators')
 local MiniPairs = require('mini.pairs')
 local MiniSurround = require('mini.surround')
 
@@ -66,6 +67,20 @@ MiniPairs.setup({
   },
 })
 
+-- extra operators
+MiniOperators.setup({
+  -- disable evaluate mapping
+  evaluate = { prefix = '' },
+
+  -- use cp motion to change and paste
+  replace = { prefix = 'cp' },
+
+  -- other mappings
+  -- gm - multiply
+  -- gs - sort
+  -- gx - exchange
+})
+
 local function toggle_end_char(char)
   local cursor = vim.api.nvim_win_get_cursor(0)
   local row = cursor[1] - 1

+ 9 - 9
.config/nixpkgs/neovim/config/lua/user/plugins/navigation.lua

@@ -1,14 +1,14 @@
-local MiniJump = require('mini.jump')
+local demicolon = require('demicolon')
 local Treewalker = require('treewalker')
 
--- repeatable f/t
-MiniJump.setup({
-  mappings = {
-    repeat_jump = '',
-  },
-  delay = {
-    highlight = 10000000,
-  },
+-- ,/; for bracket motions too
+demicolon.setup({
+  keymaps = {
+    disabled_keys = {
+      -- this is paste with indent, not a motion
+      'p',
+    }
+  }
 })
 
 -- Treesitter navigation

+ 4 - 0
.config/nixpkgs/neovim/plugins/sources.json

@@ -84,5 +84,9 @@
   "FourierTransformer/tinytoml": {
     "rev": "8fc9acf778eea141a36b7b42f55fcb6689fcfd3f",
     "sha256": "1np8gymhlvklf45f9961ksxkm0nz3ppwkxcjaw8qxzr2fgd3kq9j"
+  },
+  "mawkler/demicolon.nvim": {
+    "rev": "42eaf79845b777d3608b134f283d97ce44c87e82",
+    "sha256": "19jmf8pkcyc6yfd45xb8hk6rnksanqmbqf3alwr5axgrr9xm2rsh"
   }
 }