summaryrefslogtreecommitdiff
path: root/lua/dropship.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/dropship.lua')
-rw-r--r--lua/dropship.lua11
1 files changed, 5 insertions, 6 deletions
diff --git a/lua/dropship.lua b/lua/dropship.lua
index 7298d45..7b5eb40 100644
--- a/lua/dropship.lua
+++ b/lua/dropship.lua
@@ -6,9 +6,6 @@ local conf = require("telescope.config").values
local actions = require("telescope.actions")
local action_state = require("telescope.actions.state")
-M.drop_locations = {}
-M.use_exp = false
-
M.setup = function(opts)
opts = opts or {}
if type(opts.drop_locations) == "table" then
@@ -32,13 +29,15 @@ local function get_target(opts, callback)
opts = opts or {}
pickers
.new(opts, {
+ prompt_title = opts.prompt_title or "Drop into which project?",
+ prompt_prefix = opts.prompt_icon or "ξΆ‘ ", -- Added prompt_icon option
finder = finders.new_table({
- results = M.drop_locations,
+ results = opts.drop_locations or M.drop_locations,
entry_maker = function(entry)
return {
value = entry,
- display = entry.name .. ": " .. entry.dir,
- ordinal = entry.name,
+ display = (entry.name or "Unknown") .. ": " .. (entry.dir or "Unknown"),
+ ordinal = entry.name or ".",
}
end,
}),