plugins/yaml-schema-detect: init

This commit is contained in:
FKouhai 2025-05-31 12:05:48 +02:00 committed by Austin Horstman
parent ed0ae6600f
commit 98307977fe
2 changed files with 45 additions and 0 deletions

View file

@ -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 = "<leader>yr";
cleanup = "<leader>yc";
info = "<leader>yi";
};
};
}

View file

@ -0,0 +1,20 @@
{
empty = {
plugins.yaml-schema-detect.enable = true;
};
default = {
plugins.yaml-schema-detect = {
enable = true;
settings = {
disable_keymaps = false;
keymaps = {
refresh = "<leader>xr";
cleanup = "<leader>xyc";
info = "<leader>xyi";
};
};
};
};
}