diff --git a/plugins/by-name/yaml-schema-detect/default.nix b/plugins/by-name/yaml-schema-detect/default.nix new file mode 100644 index 00000000..2086988a --- /dev/null +++ b/plugins/by-name/yaml-schema-detect/default.nix @@ -0,0 +1,25 @@ +{ + lib, + config, + options, + ... +}: +lib.nixvim.plugins.mkNeovimPlugin { + name = "yaml-schema-detect"; + packPathName = "yaml-schema-detect.nvim"; + package = "yaml-schema-detect-nvim"; + + maintainers = [ lib.maintainers.FKouhai ]; + + description = '' + A Neovim plugin that automatically detects and applies YAML schemas for your YAML files using yaml-language-server (yamlls) + ''; + + settingsExample = { + keymap = { + refresh = "yr"; + cleanup = "yc"; + info = "yi"; + }; + }; +} diff --git a/tests/test-sources/plugins/by-name/yaml-schema-detect/default.nix b/tests/test-sources/plugins/by-name/yaml-schema-detect/default.nix new file mode 100644 index 00000000..b87a4f93 --- /dev/null +++ b/tests/test-sources/plugins/by-name/yaml-schema-detect/default.nix @@ -0,0 +1,20 @@ +{ + empty = { + plugins.yaml-schema-detect.enable = true; + }; + + default = { + plugins.yaml-schema-detect = { + enable = true; + + settings = { + disable_keymaps = false; + keymaps = { + refresh = "xr"; + cleanup = "xyc"; + info = "xyi"; + }; + }; + }; + }; +}