plugins/dial: init

This commit is contained in:
Gaetan Lepage 2025-04-29 00:48:55 +02:00
parent 7a6c5b4803
commit 19528509e5
2 changed files with 37 additions and 0 deletions

View file

@ -0,0 +1,12 @@
{ lib, ... }:
lib.nixvim.plugins.mkNeovimPlugin {
name = "dial";
packPathName = "dial.nvim";
package = "dial-nvim";
maintainers = [ lib.maintainers.GaetanLepage ];
# This plugin does not have a conventional setup function
hasSettings = false;
callSetup = false;
}

View file

@ -0,0 +1,25 @@
{
empty = {
plugins.dial.enable = true;
};
example = {
plugins.dial = {
enable = true;
luaConfig.content = ''
local augend = require("dial.augend")
require("dial.config").augends:register_group({
default = {
augend.integer.alias.decimal,
augend.integer.alias.hex,
augend.date.alias["%Y/%m/%d"],
augend.constant.alias.bool,
augend.semver.alias.semver,
augend.constant.new({ elements = { "let", "const" } }),
},
})
'';
};
};
}