Have mini.pick help open help files in vertical split by default #1421
-
Basically the title. I tried this, but got some weird behavior.
|
Beta Was this translation helpful? Give feedback.
Answered by
echasnovski
Dec 22, 2024
Replies: 2 comments 2 replies
-
local vert_help = function(selected_item)
vim.api.nvim_win_call(MiniPick.get_picker_state().windows.target, function()
vim.cmd("vert help ".. selected_item.name)
MiniPick.set_picker_target_window(vim.api.nvim_get_current_win())
return true
end)
end
MiniPick.builtin.help({}, { source = { choose = vert_help } }) |
Beta Was this translation helpful? Give feedback.
1 reply
-
On the latest |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
echasnovski
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
On the latest
main
there is nowdefault_split
local option. So now making<CR>
open in vertical split is as easy as:Pick help default_split='vertical'
. Thanks for the great question!