Add workplace symbols search to fzf

This commit is contained in:
Martin Larsson 2024-11-25 11:25:32 +01:00
parent 1570f06b6c
commit 0ac609f98e

View file

@ -7,7 +7,12 @@ return {
preview = {
default = "bat"
}
}
},
lsp = {
workspace_symbols = {
symbol_kinds = { "Variable", "Function", "Method", "Class", "Struct", "Interface" },
},
},
},
config = function()
local fzf = require("fzf-lua")
@ -37,6 +42,12 @@ return {
action = function()
fzf.git_bcommits({})
end
},
{
mapping = "s",
action = function()
fzf.lsp_live_workspace_symbols({})
end
}
}