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

Restart / Auto restart #18

Open
1 task done
otavioschwanck opened this issue Nov 16, 2023 · 5 comments
Open
1 task done

Restart / Auto restart #18

otavioschwanck opened this issue Nov 16, 2023 · 5 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@otavioschwanck
Copy link

Issues

  • I have checked existing issues and there are no existing ones with the same request.

Feature description

null-ls has a issue about that:

Sometimes, when i pull on the project, some libraries installed are different, and the rubocop (diagnostic) stop working. Because of that, the diagnostic just stop working until i restart the neovim.

Would be awesome to have a :NullRestart or have some auto-restart on the diagnostic

Help

No

Implementation help

No response

@otavioschwanck otavioschwanck added the enhancement New feature or request label Nov 16, 2023
@laurentS
Copy link
Collaborator

Have you tried :LspRestart? I am not sure it would do what you want, but worth a try since null-ls runs behind the whole LSP system.

@jakenvac
Copy link
Collaborator

@otavioschwanck can you confirm if :LspRestart does what you're after?

If not, this is something that I would be interesting in drafting up a solution to make it work.

To me it makes sense to rely on the native LSP behaviors wherever possible. Rather than having a separate command.

@otavioschwanck
Copy link
Author

@otavioschwanck can you confirm if :LspRestart does what you're after?

If not, this is something that I would be interesting in drafting up a solution to make it work.

To me it makes sense to rely on the native LSP behaviors wherever possible. Rather than having a separate command.

LspRestart doesn't works.

@jakenvac
Copy link
Collaborator

Thanks for confirming. I'll see if I can get some time to throw something together.

@chaneyzorn
Copy link

How about call enable again:

local nls = require("null-ls")
nls.enable({ name = "cspell", method = nls.methods.DIAGNOSTICS })

I use it to refresh spell check diagnostics.

@mochaaP mochaaP added the bug Something isn't working label Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants