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

Built-in LSP Declaration Handler #3386

Open
Isrothy opened this issue Dec 13, 2024 · 0 comments
Open

Built-in LSP Declaration Handler #3386

Isrothy opened this issue Dec 13, 2024 · 0 comments
Labels
enhancement Enhancement to performance, inner workings or existent features

Comments

@Isrothy
Copy link

Isrothy commented Dec 13, 2024

Is your feature request related to a problem? Please describe.
While there are handlers for goto definition, references, and others, goto declaration is missing.

Describe the solution you'd like
I would like Telescope to include a built-in goto declaration handler for LSP, similar to its existing lsp_definitions and lsp_references pickers.

Describe alternatives you've considered

  1. Using Neovim’s built-in vim.lsp.buf.declaration() function directly, but this does not integrate well with Telescope’s interface.
  2. Relying on external plugins, though this adds complexity and redundancy.
  3. Mapping vim.lsp.buf.declaration() to a Telescope picker manually, but this is not user-friendly for less experienced users.

Additional context
This feature would be particularly helpful in languages where declarations and definitions are in separate locations, such as C/C++ or Go

@Isrothy Isrothy added the enhancement Enhancement to performance, inner workings or existent features label Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement to performance, inner workings or existent features
Projects
None yet
Development

No branches or pull requests

1 participant