Skip to content

Highlighting breaks when setting up lua-language-server on neovim #2081

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

Closed
ddlpr opened this issue Apr 22, 2023 · 4 comments
Closed

Highlighting breaks when setting up lua-language-server on neovim #2081

ddlpr opened this issue Apr 22, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@ddlpr
Copy link

ddlpr commented Apr 22, 2023

How are you using the lua-language-server?

NeoVim

Which OS are you using?

MacOS

What is the issue affecting?

Other

Expected Behaviour

Consistent highlighting of functions.

image

Actual Behaviour

The first instance of the function on the file is highlighted correctly and all the other instances under it are highlighted with the wrong color.

image

Reproduction steps

Setup lua-language-server using require'lspconf'.lua_ls.setup{} and load a lua file with multiple instances of a function. Only the first instance is highlighted correctly.

Additional Notes

I am using the mason, mason-lspconfig, and nvim-lspconfig setup. Neovim 0.9 and lua-language-server 3.6.18.

Log File

No response

@sumneko
Copy link
Collaborator

sumneko commented Apr 24, 2023

I can not find the position you are talking about.

@sumneko sumneko added the Info Needed More information is required label Apr 24, 2023
@ddlpr
Copy link
Author

ddlpr commented Apr 24, 2023

I can not find the position you are talking about.

Sorry for not being more specific. On the left, lines 22-42 are where I am setting up lua-language-server. When I comment them out, as in the first image, lines 1-8 on the right have the same highlighting for the require function. When I un-comment lines 22-42 on the left, line 1 on the right has the correct highlighting (orange) for the require function, but lines 2-8 have a different highlighting (green).

@sumneko sumneko added bug Something isn't working and removed Info Needed More information is required labels Apr 25, 2023
@sumneko
Copy link
Collaborator

sumneko commented Apr 25, 2023

Ah, sorry it is a little hard for me to differentiate between orange and green

@ddlpr
Copy link
Author

ddlpr commented Apr 25, 2023

Ah, sorry it is a little hard for me to differentiate between orange and green

No worries. Thanks for getting back to me.

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