Skip to content

Commit

Permalink
feat(json): Add schemastore support to json pack
Browse files Browse the repository at this point in the history
  • Loading branch information
Uzaaft committed Nov 11, 2023
1 parent 34c11ef commit 0088629
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions lua/astrocommunity/pack/json/init.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
local utils = require "astrocore"
return {
{
"b0o/SchemaStore.nvim",
dependencies = {
{
"AstroNvim/astrolsp",
opts = {
config = {
jsonls = {
on_new_config = function(config)
if not config.settings.json.schemas then config.settings.json.schemas = {} end
vim.list_extend(config.settings.json.schemas, require("schemastore").json.schemas())
end,
settings = { json = { validate = { enable = true } } },
},
},
},
},
},
},
{
"nvim-treesitter/nvim-treesitter",
opts = function(_, opts)
Expand Down

0 comments on commit 0088629

Please sign in to comment.