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

[Bug] ccls not detected when starting other LSP in a different buffer #61

Closed
pidgeon777 opened this issue Apr 7, 2022 · 2 comments · Fixed by #63
Closed

[Bug] ccls not detected when starting other LSP in a different buffer #61

pidgeon777 opened this issue Apr 7, 2022 · 2 comments · Fixed by #63

Comments

@pidgeon777
Copy link

This line:

for _, v in ipairs(clients) do

Should be changed to:

for _, v in pairs(clients) do 

otherwise ccls won't be detected anymore for a given buffer, when starting another LSP server on a different buffer.

My modification has been tested and it always works. Some possible explanations:

ojroques/nvim-hardline#31

https://www.tutorialspoint.com/what-is-the-difference-between-pairs-vs-ipairs-in-lua#:~:text=In%20Lua%2C%20we%20make%20use,stored%20at%20that%20index%20table.

m-pilia added a commit that referenced this issue Apr 23, 2022
@m-pilia
Copy link
Owner

m-pilia commented Apr 23, 2022

Thank you @pidgeon777 for reporting this!

@pidgeon777
Copy link
Author

It's been a pleasure, yours is a good plugin.

I also hope one day this will be taken into consideration:

#62

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

Successfully merging a pull request may close this issue.

2 participants