neovim: install schemastore plugin for json
This commit is contained in:
@@ -104,6 +104,17 @@ for _, server in ipairs(servers) do
|
||||
opts.root_dir = util.root_pattern("tailwind.config.js", ".git")
|
||||
end
|
||||
|
||||
if server == "jsonls" then
|
||||
opts.settings = {
|
||||
json = {
|
||||
schemas = require("schemastore").json.schemas(),
|
||||
validate = {
|
||||
enable = true,
|
||||
},
|
||||
},
|
||||
}
|
||||
end
|
||||
|
||||
lspconfig[server].setup(opts)
|
||||
end
|
||||
|
||||
|
||||
@@ -68,6 +68,8 @@ require("packer").startup(function(use)
|
||||
end,
|
||||
})
|
||||
|
||||
use({ "b0o/SchemaStore.nvim" })
|
||||
|
||||
if PACKER_BOOTSTRAP then
|
||||
require("packer").sync()
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user