Skip to content

Commit

Permalink
feat(fzf-lua): directly go to definition when only a single result (#…
Browse files Browse the repository at this point in the history
…1339)

feat(fzf-lua): add directly go to definition when single result
  • Loading branch information
azdanov authored Jan 31, 2025
1 parent b7a458d commit f31fb46
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lua/astrocommunity/fuzzy-finder/fzf-lua/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ return {
local maps = opts.mappings
maps.n["<Leader>lD"] =
{ function() require("fzf-lua").diagnostics_document() end, desc = "Search diagnostics" }
if maps.n.gd then maps.n.gd[1] = function() require("fzf-lua").lsp_definitions() end end
if maps.n.gd then
maps.n.gd[1] = function() require("fzf-lua").lsp_definitions { jump_to_single_result = true } end
end
if maps.n.gI then maps.n.gI[1] = function() require("fzf-lua").lsp_implementations() end end
if maps.n["<Leader>lR"] then maps.n["<Leader>lR"][1] = function() require("fzf-lua").lsp_references() end end
if maps.n.gy then maps.n.gy[1] = function() require("fzf-lua").lsp_typedefs() end end
Expand Down

0 comments on commit f31fb46

Please sign in to comment.