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

matlab-languager-server cannot support lsp functions in neovim #35

Open
Jaehaks opened this issue Feb 19, 2024 · 1 comment
Open

matlab-languager-server cannot support lsp functions in neovim #35

Jaehaks opened this issue Feb 19, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Jaehaks
Copy link

Jaehaks commented Feb 19, 2024

Describe the bug
matlab-languager-server cannot support lsp functions except for linting in neovim.
it detect syntax error every time when I save the file, but other functions (syntax highlighting, hovering, go to definition , etc..) do not work.
My configuration is right?

When I call vim.lsp.buf.hove() ,
I got error like [ textDocument/hover is not supported by any of the servers registerd ]

To Reproduce

  1. nvim-lspconfig.lua
    image
    image

  2. lsp-zero.lua
    image

  3. mason.lua
    image

  4. nvim-cmp.lua
    image

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Useful Information

  • OS Version: Windows 10
  • Language Server Client: matlab-language-server
  • Client Version: nvim-qt v0.2.17
    image

Additional context
Add any other context about the problem here.

@Jaehaks Jaehaks added the bug Something isn't working label Feb 19, 2024
@rkmiec
Copy link

rkmiec commented Aug 21, 2024

vim.lsp.buf.hover() method is not supported by this language server.
There are other methods that you can check, such as vim.lsp.buf.definition() even though it doesn't always show the correct line in the file.
LSP is not responsible for your syntax highlighting in neovim - it is probably done by treesitter.

Once you call vim.lsp.buf.definition() do you get any error? If not, can you paste last few lines of your lsp log (you can open it with :LspLog command in neovim).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants