fix!: move all lazyvim extras into a single file

This is a necessary change to ensure they are loaded before any other
plugins.
Prevents a warning message at startup.
This commit is contained in:
2025-02-08 20:28:57 -05:00
parent 0e7befb507
commit 816eca31b7
13 changed files with 179 additions and 152 deletions
+26 -25
View File
@@ -175,31 +175,32 @@ local P = { -- Define Telescope Plugins Specs
},
}
if require('data.func').check_global_var('use_telescope', false, true) then
P = { { import = 'lazyvim.plugins.extras.editor.fzf' } }
end
if require('data.func').check_global_var('use_fzf_lua', true, false) then
table.insert(P, 1, { import = 'lazyvim.plugins.extras.editor.fzf' })
table.insert(P, 2, {
'ibhagwan/fzf-lua',
lazy = true,
event = 'VeryLazy',
opts = {
previewers = {
builtin = {
extensions = {
-- neovim terminal only supports `viu` block output
['png'] = { 'viu', '-b' },
-- by default the filename is added as last argument
-- if required, use `{file}` for argument positioning
['svg'] = { 'viu', '-b' },
['jpg'] = { 'viu', '-b' },
},
},
},
},
})
end
-- if require('data.func').check_global_var('use_fzf_lua', true, false) then
-- P = { { import = 'lazyvim.plugins.extras.editor.fzf' } }
-- end
--
-- if require('data.func').check_global_var('use_fzf_lua', true, false) then
-- table.insert(P, 1, { import = 'lazyvim.plugins.extras.editor.fzf' })
-- table.insert(P, 2, {
-- 'ibhagwan/fzf-lua',
-- lazy = true,
-- event = 'VeryLazy',
-- opts = {
-- previewers = {
-- builtin = {
-- extensions = {
-- -- neovim terminal only supports `viu` block output
-- ['png'] = { 'viu', '-b' },
-- -- by default the filename is added as last argument
-- -- if required, use `{file}` for argument positioning
-- ['svg'] = { 'viu', '-b' },
-- ['jpg'] = { 'viu', '-b' },
-- },
-- },
-- },
-- },
-- })
-- end
return P