Skip to content

Commit 1952850

Browse files
committed
plugins/dial: init
1 parent 7a6c5b4 commit 1952850

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

plugins/by-name/dial/default.nix

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{ lib, ... }:
2+
lib.nixvim.plugins.mkNeovimPlugin {
3+
name = "dial";
4+
packPathName = "dial.nvim";
5+
package = "dial-nvim";
6+
7+
maintainers = [ lib.maintainers.GaetanLepage ];
8+
9+
# This plugin does not have a conventional setup function
10+
hasSettings = false;
11+
callSetup = false;
12+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
empty = {
3+
plugins.dial.enable = true;
4+
};
5+
6+
example = {
7+
plugins.dial = {
8+
enable = true;
9+
10+
luaConfig.content = ''
11+
local augend = require("dial.augend")
12+
require("dial.config").augends:register_group({
13+
default = {
14+
augend.integer.alias.decimal,
15+
augend.integer.alias.hex,
16+
augend.date.alias["%Y/%m/%d"],
17+
augend.constant.alias.bool,
18+
augend.semver.alias.semver,
19+
augend.constant.new({ elements = { "let", "const" } }),
20+
},
21+
})
22+
'';
23+
};
24+
};
25+
}

0 commit comments

Comments
 (0)