cleanup and add yaml schema snippet to helm

This commit is contained in:
2025-01-09 11:17:18 +02:00
parent 78d14b79a7
commit f7ff3f6f4f
4 changed files with 39 additions and 25 deletions

View File

@@ -111,16 +111,18 @@ ls.add_snippets('terraform', {
------------------------------
-- YAML
------------------------------
ls.add_snippets('yaml', {
s({ name = 'yaml_schema', trig = 'yaml_schema' },
fmt([[
local yaml_schema_snippet = 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 } }),
}
)
),
})
{
path = i(1, 'path'),
comment = f(com_string, {}, { user_args = { false } }),
}
)
)
ls.add_snippets('yaml', { yaml_schema_snippet })
ls.add_snippets('helm', { yaml_schema_snippet })