add yaml schema snippet
This commit is contained in:
@@ -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 } }),
|
||||
}
|
||||
)
|
||||
),
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user