mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-13 22:29:09 +02:00
plugins/yaml-schema-detect: init
This commit is contained in:
parent
ed0ae6600f
commit
98307977fe
2 changed files with 45 additions and 0 deletions
25
plugins/by-name/yaml-schema-detect/default.nix
Normal file
25
plugins/by-name/yaml-schema-detect/default.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue