Skip to content

Conversation

@wiserfz
Copy link
Contributor

@wiserfz wiserfz commented Aug 29, 2025

Hi, thank you for such amazing plugin.

I noticed the command lspsaga finder def+ref will display the definition and the references, but the definition also include in the references section:

bashls

image

rust-analyzer

image

and I also see the issue #1336 , so I open this PR and add an option finder.ref_opt which indicated the parameters includeDeclaration for the LSP RCP method textDocument/references, the default value is true and also can be a table which can setup value for each LSP client for example:

local saga = require("lspsaga")

saga.setup({
    finder = {
      ref_opt = {
        bashls = false,
        rust_analyzer = false,
        lua_ls = true,
      },
    },
})

bashls

image

rust-analyzer

image

lua_ls

image

Any feedback is appreciated.

@wiserfz wiserfz changed the title Add finder option references_opts Add finder option ref_opt Sep 10, 2025
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