mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-20 16:15:43 +02:00
plugins/dial: init
This commit is contained in:
parent
7a6c5b4803
commit
19528509e5
2 changed files with 37 additions and 0 deletions
12
plugins/by-name/dial/default.nix
Normal file
12
plugins/by-name/dial/default.nix
Normal 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;
|
||||||
|
}
|
25
tests/test-sources/plugins/by-name/dial/default.nix
Normal file
25
tests/test-sources/plugins/by-name/dial/default.nix
Normal 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" } }),
|
||||||
|
},
|
||||||
|
})
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue