Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"format request failed, no matching language servers" while LSPInfo seems OK and completion is working. #90

Open
metorm opened this issue Jan 2, 2024 · 0 comments

Comments

@metorm
Copy link

metorm commented Jan 2, 2024

Hi, I am trying to make the formatting function work in neovim & nvim-lspconfig.

I installed cmake-format and cmake-language-server via Mason there is no error shown.

I configured cmake-language-server like this: (NvChad)

-- if you just want default config for the servers then put them in a table
local servers = { "html", "cssls", "tsserver" , "cmake"}

for _, lsp in ipairs(servers) do
  lspconfig[lsp].setup {
    on_attach = on_attach,
    capabilities = capabilities,
  }
end

Now the completion is working, and I can see this via LSPInfo:

image

And, In LSPLog there is an error but it does seems to matter:

image

So, what's the problem?

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant