mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
feat(yaml): support line folding
This commit is contained in:
parent
89cf13dc80
commit
4daf86680c
1 changed files with 9 additions and 0 deletions
|
|
@ -21,6 +21,15 @@ return {
|
||||||
-- make sure mason installs the server
|
-- make sure mason installs the server
|
||||||
servers = {
|
servers = {
|
||||||
yamlls = {
|
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
|
-- lazy-load schemastore when needed
|
||||||
on_new_config = function(new_config)
|
on_new_config = function(new_config)
|
||||||
new_config.settings.yaml.schemas = new_config.settings.yaml.schemas or {}
|
new_config.settings.yaml.schemas = new_config.settings.yaml.schemas or {}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue