local helper = require("kyoh86.plug.ddu.helper") ---@type LazySpec local spec = { "kyoh86/ddu-source-gogh", dependencies = { "Shougo/ddu.vim", "Shougo/ddu-kind-file" }, config = function() helper.map_start("fpl", "gogh_project", { sources = { { name = "gogh_project" } }, kindOptions = { gogh_project = { defaultAction = "cd", }, }, }) helper.map_ff_file("gogh_project", function(map) map("e", helper.action("itemAction", { name = "open" })) map("b", helper.action("itemAction", { name = "browse" })) end) helper.map_start("fpr", "gogh_repo", { sources = { { name = "gogh_repo" } }, kindOptions = { gogh_repo = { defaultAction = "browse", }, }, }) helper.map_ff("gogh_repo", function(map) map("g", helper.action("itemAction", { name = "get" })) end) end, } return spec