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 = {
95
95
``` lua
96
96
opts = function (_ , opts )
97
97
vim .treesitter .language .register (" markdown" , " octo" )
98
- if LazyVim .has ( " telescope.nvim " ) then
98
+ if LazyVim .has_extra ( " editor.telescope " ) then
99
99
opts .picker = " telescope"
100
- elseif LazyVim .has ( " fzf-lua " ) then
100
+ elseif LazyVim .has_extra ( " editor. fzf" ) then
101
101
opts .picker = " fzf-lua"
102
+ elseif LazyVim .has_extra (" editor.snacks_picker" ) then
103
+ opts .picker = " snacks"
102
104
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` " )
104
106
end
105
107
106
108
-- Keep some empty windows in sessions
@@ -129,12 +131,14 @@ end
129
131
" pwntester/octo.nvim" ,
130
132
opts = function (_ , opts )
131
133
vim .treesitter .language .register (" markdown" , " octo" )
132
- if LazyVim .has ( " telescope.nvim " ) then
134
+ if LazyVim .has_extra ( " editor.telescope " ) then
133
135
opts .picker = " telescope"
134
- elseif LazyVim .has ( " fzf-lua " ) then
136
+ elseif LazyVim .has_extra ( " editor. fzf" ) then
135
137
opts .picker = " fzf-lua"
138
+ elseif LazyVim .has_extra (" editor.snacks_picker" ) then
139
+ opts .picker = " snacks"
136
140
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` " )
138
142
end
139
143
140
144
-- Keep some empty windows in sessions
You can’t perform that action at this time.
0 commit comments