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

feat: lsp-info command #8002

Draft
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

TheRealLorenz
Copy link
Contributor

@TheRealLorenz TheRealLorenz commented Aug 19, 2023

This PR implements :lsp-info, which opens a modified version of an Info Component, LspInfo.

In order to extend the Info Component, it has been generalised a little bit.

Currently LspInfo appears in the center of the screen and looks like this:

┌Lsp Info──────────────────────────────────────────────┐
│ Press q or Esc to close this window                  │
│                                                      │
│ Detected language: javascript                        │
│ File-type(s): [js, mjs, cjs]                         │
│ Root(s): []                                          │
│ Formatter: `prettier --parser typescript`            │
│                                                      │
│ Detected clients:                                    │
│   ✓ eslint (id: 1)                                   │
│     command: `vscode-eslint-language-server --stdio` │
│                                                      │
│   ✓ typescript-language-server (id: 0)               │
│     command: `typescript-language-server --stdio`    │
│                                                      │
└──────────────────────────────────────────────────────┘

Planned and implemented features:

  • LSP status.
  • Colored output.
  • View latest error(s).
  • Start/Stop/Restart LSPs.
  • View loaded LSP config.

I'm open to feedbacks and suggestions!

Maybe related to #6875.

Inspired by nvim-lspconfig's :LspInfo.

@TheRealLorenz TheRealLorenz changed the title [Feature] lsp-info [Feature] :lsp-info command Aug 19, 2023
@TheRealLorenz TheRealLorenz changed the title [Feature] :lsp-info command feat: lsp-info command Aug 19, 2023
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 this pull request may close these issues.

None yet

1 participant