feat(yaml): support line folding

This commit is contained in:
Jonas Holst Damtoft 2023-07-29 15:54:17 +02:00
parent 89cf13dc80
commit 4daf86680c

View file

@ -21,6 +21,15 @@ return {
-- make sure mason installs the server
servers = {
yamlls = {
-- Have to add this for yamlls to understand that we support line folding
capabilities = {
textDocument = {
foldingRange = {
dynamicRegistration = false,
lineFoldingOnly = true,
},
},
},
-- lazy-load schemastore when needed
on_new_config = function(new_config)
new_config.settings.yaml.schemas = new_config.settings.yaml.schemas or {}