[mini.extra] Better colorschemes picker
#2146
Replies: 3 comments 15 replies
-
|
Thanks for sharing!
|
Beta Was this translation helpful? Give feedback.
-
|
I have a question. I want to change the name of the picker without affecting the current view or the selected item. When I use vim.keymap.set("n", "<space>sc", ":Pick colorschemes<Enter>", { desc = "Search colors" })
MiniPick.registry.colorschemes = function(local_opts, opts)
return MiniExtra.pickers.colorschemes(
local_opts,
vim.tbl_deep_extend("keep", opts or {}, {
mappings = {
change_name = {
char = "<F1>",
func = function()
local matches = MiniPick.get_picker_matches()
MiniPick.set_picker_opts({ source = { name = "Colorschemes (" .. "Hello" .. ")" } })
MiniPick.set_picker_match_inds({ matches.current_ind }, "current")
end,
},
},
})
)
endThe actual use case for me is to change |
Beta Was this translation helpful? Give feedback.
-
|
I forgot to ask. I wanted to use the If not, is there a chance of adding a |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Related: #951
Features:
<Tab>(see comment)vim.o.backgroundwith<C-o><C-0>colors.mp4
Beta Was this translation helpful? Give feedback.
All reactions