feat(yaml): use schema store
This commit is contained in:
parent
e74a285c3f
commit
b948407ec1
2 changed files with 11 additions and 0 deletions
|
|
@ -2,4 +2,11 @@
|
|||
return {
|
||||
filetypes = { "yaml" },
|
||||
cmd = { "yaml-language-server", "--stdio" },
|
||||
settings = {
|
||||
yaml = {
|
||||
-- Using the schemastore plugin for schemas.
|
||||
schemastore = { enable = false, url = "" },
|
||||
schemas = require("schemastore").yaml.schemas(),
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
4
lua/weeheavy/plugins/schemastore.lua
Normal file
4
lua/weeheavy/plugins/schemastore.lua
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
-- JSON/YAML schemas.
|
||||
return {
|
||||
{ "b0o/SchemaStore.nvim", lazy = true },
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue