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): add support of LSP items post-processing and deduplication #3381

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sergluka
Copy link

@sergluka sergluka commented Dec 7, 2024

Description

LSP references result deduplication. When multiple LSP servers are used, their functionality may overlap, leading to duplicated values in the summarized list. This fix enables either automatic result deduplication or a post-processing function, allowing users to implement custom logic for the resulting list.

A new configuration value, post_process, has been added.

Note: There is a similar MR (#3353), but this approach provides more control to users.

Fixes: #3328

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

How Has This Been Tested?

  • :Telescope lsp_references
  • :Telescope lsp_definitions
  • :Telescope lsp_type_definitions
  • :Telescope lsp_implementations

All lists shouldn't have duplicates

Configuration:

  • Neovim version (nvim --version): v0.10.2
  • Operating system and version: Ubuntu 22.04.5 LTS

Checklist:

  • My code follows the style guidelines of this project (stylua)
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation (lua annotations)

@sergluka sergluka force-pushed the feat/lsp_post_processing branch from 421fd47 to 0873b52 Compare December 12, 2024 10:40
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.

1 participant