Skip to content

Commit

Permalink
set includeDeclaration when no definition close #1331
Browse files Browse the repository at this point in the history
  • Loading branch information
glepnir committed Oct 20, 2023
1 parent 353d899 commit b48b807
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lua/lspsaga/finder/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -504,9 +504,11 @@ function fd:new(args)

self.list = slist.new()
local params = lsp.util.make_position_params()
params.context = {
includeDeclaration = true,
}
if not vim.tbl_contans(methods, 'textDocument/definition') then
params.context = {
includeDeclaration = true,
}
end

local spin_close = box.spinner()
local count = 0
Expand Down

0 comments on commit b48b807

Please sign in to comment.