-
-
Notifications
You must be signed in to change notification settings - Fork 21
Stepping away from the project (looking for new maintainer) #505
Comments
Hi, it is sad to discover the plugin gets discontinued, I found it very useful. Thank you for your work over the years! I use legendary.nvim in complement with which-key.nvim, it does not look like it can be replaced by it alone. My use cases for legendary:
The great thing about legendary is that both are available within a single picker. As for replacement I expect 1. can be probably replaced by |
I switched away from telescope to I just look at which-key for keys, I rely on commandline completion from blink.cmp for commands, and for arbitrary functions I've done this:
---@class PaletteEntry
---@field text string|fun(buf:number, win:number):string
---@field on_selected fun(buf:number, win:number)
---@type PaletteEntry[]
return {
{
text = ' Copy relative filepath',
on_selected = function(buf)
local filepath = vim.api.nvim_buf_get_name(buf)
if not filepath or #filepath == 0 then
vim.notify('Could not expand filepath')
return
end
local relpath = vim.fn.simplify(require('my.utils.path').relative(vim.fn.expand('%') --[[@as string]]))
require('my.utils.clipboard').copy(relpath)
vim.notify('Relative filepath copied to clipboard')
end,
},
{
text = ' Copy git branch name',
on_selected = function(buf)
local branch = vim.g.gitsigns_head or vim.b[buf].gitsigns_head
if not branch or #branch == 0 then
vim.notify('Could not determine git branch')
return
end
require('my.utils.clipboard').copy(branch)
end,
},
} then my which-key config I have a keymap {
'<C-p>',
function()
local buf = vim.api.nvim_get_current_buf()
local win = vim.api.nvim_get_current_win()
vim.ui.select(require('my.cmd_palette'), {
prompt = 'Command Palette',
format_item = function(
item --[[@as PaletteEntry]]
)
if type(item.text) == 'function' then
return item.text(buf, win)
end
return item.text
end,
}, function(
choice --[[@as PaletteEntry]]
)
local callback = vim.tbl_get(choice or {}, 'on_selected')
if type(callback) == 'function' then
callback(buf, win)
end
end)
end,
}, |
Cool, great inspiration, thanks for sharing! |
Category
Other
Description
Hi all.
As time has gone on, I've found myself using this plugin less and less. At this point I have largely replaced it with
which-key.nvim
andsnacks.picker
.With that said, I don't really have the time to maintain this project anymore, as its gotten quite complex and since I don't use it almost at all anymore, I'm not really invested.
Please chat in the thread if you're interested in maintaining the plugin! If nobody chimes in within a month or so, I'll archive the repo, at which point anyone can still fork it.
The text was updated successfully, but these errors were encountered: