mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-23 17:28:57 +02:00
fix(yaml): yaml schemas are a dict, not a list, so merge properly. Fixes #1636
This commit is contained in:
parent
e11a3cbe80
commit
33c677a55e
1 changed files with 5 additions and 2 deletions
|
@ -35,8 +35,11 @@ return {
|
||||||
},
|
},
|
||||||
-- 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 = vim.tbl_deep_extend(
|
||||||
vim.list_extend(new_config.settings.yaml.schemas, require("schemastore").yaml.schemas())
|
"force",
|
||||||
|
new_config.settings.yaml.schemas or {},
|
||||||
|
require("schemastore").yaml.schemas()
|
||||||
|
)
|
||||||
end,
|
end,
|
||||||
settings = {
|
settings = {
|
||||||
redhat = { telemetry = { enabled = false } },
|
redhat = { telemetry = { enabled = false } },
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue