Skip to content

Commit

Permalink
feat(yaml): Add schemastore support to yaml pack
Browse files Browse the repository at this point in the history
  • Loading branch information
Uzaaft committed Nov 11, 2023
1 parent 0088629 commit d6d36c2
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions lua/astrocommunity/pack/yaml/init.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,27 @@
local utils = require "astrocore"
return {
{
"b0o/SchemaStore.nvim",
dependencies = {
{
"AstroNvim/astrolsp",
opts = {
config = {
yamlls = {
on_new_config = function(config)
config.settings.yaml.schemas = vim.tbl_deep_extend(
"force",
config.settings.yaml.schemas or {},
require("schemastore").yaml.schemas()
)
end,
settings = { yaml = { schemaStore = { enable = false, url = "" } } },
},
},
},
},
},
},
{
"nvim-treesitter/nvim-treesitter",
opts = function(_, opts)
Expand Down

0 comments on commit d6d36c2

Please sign in to comment.