mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-29 12:10:12 +02:00
feat(octo): add support for snacks picker (#5625)
## Description A [PR](https://github.com/pwntester/octo.nvim/pull/858) has landed in `octo.nvim` that adds initial support for `snacks.picker`. Enable it in `octo.nvim` Extra if user uses `snacks.picker`. I also changed the checks to use `has_extra`. This was needed for `snacks.picker`, since `has("snacks.nvim")` doesn't ensure that user also has `snacks.picker` enabled. For the others I just changed it for conformity, but if you think there might be something wrong about that (that I'm unable to think of), please feel free to change them back. <!-- Describe the big picture of your changes to communicate to the maintainers why we should accept this pull request. --> ## Related Issue(s) None <!-- If this PR fixes any issues, please link to the issue here. - Fixes #<issue_number> --> ## Screenshots <!-- Add screenshots of the changes if applicable. --> ## Checklist - [x] I've read the [CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md) guidelines.
This commit is contained in:
parent
f2f2aea672
commit
16a772452a
1 changed files with 5 additions and 3 deletions
|
@ -42,12 +42,14 @@ return {
|
||||||
"pwntester/octo.nvim",
|
"pwntester/octo.nvim",
|
||||||
opts = function(_, opts)
|
opts = function(_, opts)
|
||||||
vim.treesitter.language.register("markdown", "octo")
|
vim.treesitter.language.register("markdown", "octo")
|
||||||
if LazyVim.has("telescope.nvim") then
|
if LazyVim.has_extra("editor.telescope") then
|
||||||
opts.picker = "telescope"
|
opts.picker = "telescope"
|
||||||
elseif LazyVim.has("fzf-lua") then
|
elseif LazyVim.has_extra("editor.fzf") then
|
||||||
opts.picker = "fzf-lua"
|
opts.picker = "fzf-lua"
|
||||||
|
elseif LazyVim.has_extra("editor.snacks_picker") then
|
||||||
|
opts.picker = "snacks"
|
||||||
else
|
else
|
||||||
LazyVim.error("`octo.nvim` requires `telescope.nvim` or `fzf-lua`")
|
LazyVim.error("`octo.nvim` requires `telescope.nvim` or `fzf-lua` or `snacks.nvim`")
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Keep some empty windows in sessions
|
-- Keep some empty windows in sessions
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue