yaml-language-server
yaml-language-server copied to clipboard
ERR: scheme is missing
Hi together, When opening yaml buffers where the yaml-language-server attaches, I get an error saying "Request initialize failed, scheme is missing". I'm on nvim v0.11.0 and configure the lsp with nvim-lspconfig
COMPLETE ERROR
Error executing vim.schedule lua callback: ...HEAD-fa46441_1/share/nvim/runtime/lu
/vim/lsp/client.lua:548: RPC[Error] code_name = InternalError, message = "Request
nitialize failed with message: [UriError]: Scheme is missing: {scheme: \"\", autho
ity: \"\", path: \"null\", query: \"\", fragment: \"\"}"
stack traceback:
[C]: in function 'assert'
...HEAD-fa46441_1/share/nvim/runtime/lua/vim/lsp/client.lua:548: in functi
n ''
vim/_editor.lua: in function <vim/_editor.lua:0>
LSP HANDLER
["yamlls"] = function()
require("lspconfig").yamlls.setup({
capabilities = require("blink.cmp").get_lsp_capabilities(),
settings = {
yaml = {
schemas = {
["https://json.schemastore.org/github-workflow.json"] = ".github/workflows/*",
["https://raw.githubusercontent.com/compose-spec/compose-spec/master/schema/compose-spec.json"] = "docker-compose*.{yml,yaml}",
["https://json.schemastore.org/yamllint.json"] = "*.{yml,yaml}",
},
},
},
})
end,