nvimdev / nvimdev/lspsaga.nvim

[Enhancement] Better `Lspsaga subtypes` and `Lspsaga supertypes` LSP filtering

Open
#1,428 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Lua
Stars
3.8k
Forks
308
PR merge metrics
No merged PRs in 30d

Description

When running the following commands:

  • Lspsaga subtypes
  • Lspsaga supertypes

a pop-up appears asking to select the wished LSP to perform the TypeHierarchy request.

For example, in the case of Python** it is possible in my buffer to select between:

  • basedpyright
  • ruff
  • copilot

copilot wouldn't make sense and it is suggested on every buffer where it is active.

To solve this, I would propose for example to check if the LSP attached to the buffer supports the TypeHierarchy capability, before showing it in the pop-up.

Also, maybe it would be technically possible to merge all of the results provided by the remaining LSPs?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the implementation behind Lspsaga subtypes and Lspsaga supertypes; first trace how attached LSP clients are collected and how the TypeHierarchy request is dispatched. Check how capability filtering could affect the selection popup, then assess whether results from eligible clients can be merged and how completion should be verified.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua, neovim
Domain
developer-experience, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.