My Nix Configuration
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

[dishvim] add dial.nvim

dish 33900588 c177ef1c

+77
+1
neovim/dishvim.nix
··· 16 16 ./lualine.nix 17 17 ./misc/cursor-restore.nix 18 18 ./plugins/trouble.nix 19 + ./plugins/dial-nvim.nix 19 20 # keep-sorted end 20 21 ]; 21 22 config.vim = {
+76
neovim/plugins/dial-nvim.nix
··· 1 + { lib, pkgs, ... }: 2 + { 3 + config.vim = { 4 + lazy.plugins."dial.nvim" = { 5 + package = pkgs.vimPlugins.dial-nvim; 6 + after = '' 7 + local augend = require "dial.augend" 8 + require("dial.config").augends:register_group { 9 + default = { 10 + augend.integer.alias.decimal, 11 + augend.integer.alias.hex, 12 + augend.semver.alias.semver, 13 + }, 14 + } 15 + ''; 16 + keys = [ 17 + { 18 + mode = "v"; 19 + key = "<C-a>"; 20 + action = "function() return require(\"dial.map\").manipulate(\"increment\", \"visual\") end"; 21 + lua = true; 22 + desc = "Increment"; 23 + } 24 + { 25 + mode = "v"; 26 + key = "<C-x>"; 27 + action = "function() return require(\"dial.map\").manipulate(\"decrement\", \"visual\") end"; 28 + lua = true; 29 + desc = "Decrement"; 30 + } 31 + { 32 + mode = "n"; 33 + key = "<C-a>"; 34 + action = "function() return require(\"dial.map\").manipulate(\"increment\", \"normal\") end"; 35 + lua = true; 36 + desc = "Increment"; 37 + } 38 + { 39 + mode = "n"; 40 + key = "<C-x>"; 41 + action = "function() return require(\"dial.map\").manipulate(\"decrement\", \"normal\") end"; 42 + lua = true; 43 + desc = "Decrement"; 44 + } 45 + { 46 + mode = "n"; 47 + key = "g<C-a>"; 48 + action = "function() return require(\"dial.map\").manipulate(\"increment\", \"gnormal\") end"; 49 + lua = true; 50 + desc = "Increment"; 51 + } 52 + { 53 + mode = "n"; 54 + key = "g<C-x>"; 55 + action = "function() return require(\"dial.map\").manipulate(\"decrement\", \"gnormal\") end"; 56 + lua = true; 57 + desc = "Decrement"; 58 + } 59 + { 60 + mode = "x"; 61 + key = "g<C-a>"; 62 + action = "function() return require(\"dial.map\").manipulate(\"increment\", \"gvisual\") end"; 63 + lua = true; 64 + desc = "Increment"; 65 + } 66 + { 67 + mode = "x"; 68 + key = "g<C-x>"; 69 + action = "function() return require(\"dial.map\").manipulate(\"decrement\", \"gvisual\") end"; 70 + lua = true; 71 + desc = "Decrement"; 72 + } 73 + ]; 74 + }; 75 + }; 76 + }