install schemastore plugin for json schemas
This commit is contained in:
@@ -67,6 +67,7 @@ require("packer").startup(function(use)
|
||||
require("tailwindcss-colors").setup()
|
||||
end,
|
||||
})
|
||||
use({ "b0o/SchemaStore.nvim" })
|
||||
|
||||
-- Completion, snippets, etc
|
||||
use({
|
||||
|
||||
@@ -191,6 +191,21 @@ lsp_installer.on_server_ready(function(server)
|
||||
}
|
||||
end
|
||||
|
||||
if server.name == "jsonls" then
|
||||
opts.settings = {
|
||||
json = {
|
||||
schemas = require("schemastore").json.schemas({
|
||||
select = {
|
||||
".eslintrc",
|
||||
"package.json",
|
||||
"tsconfig.json",
|
||||
"prettierrc.json",
|
||||
},
|
||||
}),
|
||||
},
|
||||
}
|
||||
end
|
||||
|
||||
server:setup(opts)
|
||||
end)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user