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

Support for DocumentSymbols #21

Open
tadfisher opened this issue Jul 21, 2024 · 1 comment
Open

Support for DocumentSymbols #21

tadfisher opened this issue Jul 21, 2024 · 1 comment

Comments

@tadfisher
Copy link

Some servers support DocumentSymbols but not WorkspaceSymbols. Could we get a Consult command for that?

@mohkale
Copy link
Owner

mohkale commented Jul 22, 2024

Is there a need for something eglot specific here? eglot integrates with imenu through the DocumentSymbols call. So whenever you run imenu to jump to definition DocumentSymbols will be queried. Consult also has direct interface with imenu through consult-imenu so you can transitively resolve document symbols through consult-imenu.

The only missing piece is consult-imenu doesn't really do asynchronous the same way consult-ripgrep and friends so it can block on especially large files or slow servers.

I think we should just add a comment to the README to explain this, but I'm not sure dedicated support in this package is required.

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

No branches or pull requests

2 participants