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

add diagnostics signs. #87

Closed
prabirshrestha opened this issue Jan 5, 2018 · 2 comments
Closed

add diagnostics signs. #87

prabirshrestha opened this issue Jan 5, 2018 · 2 comments

Comments

@prabirshrestha
Copy link
Owner

Although vim-lsp already supports :LspDiagnostics it would be good to have diagnostics signs working.

Seems like @tsufeki already got it running. https://github.com/tsufeki/vim-lsp/tree/diagnostic-signs. Any plans to send PR soon for this?

image

Ideally I would like to have another vim plugin that manages these signs and vim-lsp uses it. This ways other plugins besides vim-lsp can also work on it. Had posted my initial thoughts to ale but got rejected. dense-analysis/ale#517 (comment)

Would love to have the api look somewhat like VsCodes' DiagnosticsCollection simple and clear. https://code.visualstudio.com/docs/extensionAPI/vscode-api#DiagnosticCollection

@prabirshrestha
Copy link
Owner Author

This is now supported by #89 and #90.

@nickspoons
Copy link
Contributor

@prabirshrestha I realise this is already implemented but have you seen that ALE now does, in fact, support allowing external plugins to send diagnostics? ALE provides an ALEWantResults User autocmd, see dense-analysis/ale/issues/2017.

This is now being used in OmniSharp-vim, see here and here

It could be worth providing an option to use ALE signs rather than vim-lsp signs. This would allow users who already use ALE for other things to use their same ALE sign configuration for LSP diagnostics, and also use their same mappings for navigating between diagnostic results.

Would you be interested in this, if I put together a PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants