mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
fix(json,yaml): use before_init instead of on_new_config
This commit is contained in:
parent
167d39b2be
commit
072eac8017
2 changed files with 2 additions and 2 deletions
|
|
@ -27,7 +27,7 @@ return {
|
|||
servers = {
|
||||
jsonls = {
|
||||
-- lazy-load schemastore when needed
|
||||
on_new_config = function(new_config)
|
||||
before_init = function(_, new_config)
|
||||
new_config.settings.json.schemas = new_config.settings.json.schemas or {}
|
||||
vim.list_extend(new_config.settings.json.schemas, require("schemastore").json.schemas())
|
||||
end,
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ return {
|
|||
},
|
||||
},
|
||||
-- lazy-load schemastore when needed
|
||||
on_new_config = function(new_config)
|
||||
before_init = function(_, new_config)
|
||||
new_config.settings.yaml.schemas = vim.tbl_deep_extend(
|
||||
"force",
|
||||
new_config.settings.yaml.schemas or {},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue