File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed
Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -95,12 +95,14 @@ opts = {
9595``` lua
9696opts = function (_ , opts )
9797 vim .treesitter .language .register (" markdown" , " octo" )
98- if LazyVim .has ( " telescope.nvim " ) then
98+ if LazyVim .has_extra ( " editor.telescope " ) then
9999 opts .picker = " telescope"
100- elseif LazyVim .has ( " fzf-lua " ) then
100+ elseif LazyVim .has_extra ( " editor. fzf" ) then
101101 opts .picker = " fzf-lua"
102+ elseif LazyVim .has_extra (" editor.snacks_picker" ) then
103+ opts .picker = " snacks"
102104 else
103- LazyVim .error (" `octo.nvim` requires `telescope.nvim` or `fzf-lua`" )
105+ LazyVim .error (" `octo.nvim` requires `telescope.nvim` or `fzf-lua` or `snacks.nvim` " )
104106 end
105107
106108 -- Keep some empty windows in sessions
@@ -129,12 +131,14 @@ end
129131 " pwntester/octo.nvim" ,
130132 opts = function (_ , opts )
131133 vim .treesitter .language .register (" markdown" , " octo" )
132- if LazyVim .has ( " telescope.nvim " ) then
134+ if LazyVim .has_extra ( " editor.telescope " ) then
133135 opts .picker = " telescope"
134- elseif LazyVim .has ( " fzf-lua " ) then
136+ elseif LazyVim .has_extra ( " editor. fzf" ) then
135137 opts .picker = " fzf-lua"
138+ elseif LazyVim .has_extra (" editor.snacks_picker" ) then
139+ opts .picker = " snacks"
136140 else
137- LazyVim .error (" `octo.nvim` requires `telescope.nvim` or `fzf-lua`" )
141+ LazyVim .error (" `octo.nvim` requires `telescope.nvim` or `fzf-lua` or `snacks.nvim` " )
138142 end
139143
140144 -- Keep some empty windows in sessions
You can’t perform that action at this time.
0 commit comments