install schemastore plugin for json schemas
This commit is contained in:
@@ -67,6 +67,7 @@ require("packer").startup(function(use)
|
|||||||
require("tailwindcss-colors").setup()
|
require("tailwindcss-colors").setup()
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
use({ "b0o/SchemaStore.nvim" })
|
||||||
|
|
||||||
-- Completion, snippets, etc
|
-- Completion, snippets, etc
|
||||||
use({
|
use({
|
||||||
|
|||||||
@@ -191,6 +191,21 @@ lsp_installer.on_server_ready(function(server)
|
|||||||
}
|
}
|
||||||
end
|
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)
|
server:setup(opts)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user