diff --git a/plugins/by-name/dial/default.nix b/plugins/by-name/dial/default.nix new file mode 100644 index 00000000..7f9d7905 --- /dev/null +++ b/plugins/by-name/dial/default.nix @@ -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; +} diff --git a/tests/test-sources/plugins/by-name/dial/default.nix b/tests/test-sources/plugins/by-name/dial/default.nix new file mode 100644 index 00000000..f4cfcaca --- /dev/null +++ b/tests/test-sources/plugins/by-name/dial/default.nix @@ -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" } }), + }, + }) + ''; + }; + }; +}