-
-
Notifications
You must be signed in to change notification settings - Fork 31
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
LspRestart causes an abnormal client list #75
Comments
Aah I see, we need to somehow detect and detach from the old lsp server 🤔 |
By refreshing buffer, what do you mean? |
maybe :e
…------------------ Original ------------------
From: Smitesh Patil ***@***.***>
Date: Sat,Aug 26,2023 1:37 PM
To: SmiteshP/nvim-navbuddy ***@***.***>
Cc: Tim Lee ***@***.***>, Author ***@***.***>
Subject: Re: [SmiteshP/nvim-navbuddy] LspRestart causes an abnormal clientlist (Issue #75)
By refreshing buffer, what do you mean?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Reopening the same buffer with :e doesn't cause this issue for me 🤔 |
I use |
@JosefLitos Can you check if it still occurs on latest master? A few commits have been added that might have fixed this issue |
Oh, yeah, it totally works. I thought this was closed together with the commit already :D |
I really enjoy using this plugin; it's very useful, and I appreciate the efforts of the author. However, recently I've encountered an issue. Sometimes I need to switch Python environments, and during this process, “LspRestart” gets executed.
"LspRestart" will result in new clients being created. Only by selecting the last client can it work properly, and the other clients should not appear.
Below is an example of a tsserver restart:
When I select the first client, NavBuddy doesn't respond at all.
Here is my configuration:
{ "SmiteshP/nvim-navbuddy", dependencies = { { "SmiteshP/nvim-navbuddy", dependencies = { "SmiteshP/nvim-navic", "MunifTanjim/nui.nvim" }, opts = { lsp = { auto_attach = true, }, window = { position = { col = '50%', row = '27%' }, size = "30%", sections = { left = { size = '25%' }, mid = { size = '50%' }, right = { size = '25%', preview = 'never' } } } } } } },
The text was updated successfully, but these errors were encountered: