Closed mrt181 closed 2 months ago
Try using a config function instead of an opts table:
return {
"neovim/nvim-lspconfig",
dependencies = {
{ "b0o/schemastore.nvim" },
},
config = function()
require("lspconfig").jsonls.setup {
settings = {
json = {
schemas = require("schemastore").json.schemas(),
validate = { enable = true },
},
},
}
require("lspconfig").yamlls.setup {
settings = {
yaml = {
schemaStore = {
enable = true,
url = "https://www.schemastore.org/api/json/catalog.json",
},
schemas = require("schemastore").yaml.schemas(),
},
},
}
end,
}
I'm going to close this issue. If you're still experiencing this error, please feel free to re-open it.
This is my
nvim-lspconfig.lua
configI get this error:
How can I fix that?