add yaml schema snippet

This commit is contained in:
2025-01-02 09:57:11 +02:00
parent 0f0dafb773
commit 78d14b79a7

View File

@@ -108,3 +108,19 @@ ls.add_snippets('terraform', {
), ),
}) })
------------------------------
-- YAML
------------------------------
ls.add_snippets('yaml', {
s({ name = 'yaml_schema', trig = 'yaml_schema' },
fmt([[
{comment} yaml-language-server: $schema={path}
]],
{
path = i(1, 'path'),
comment = f(com_string, {}, { user_args = { false } }),
}
)
),
})