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:
@@ -13,28 +13,6 @@ return {
|
||||
cond = require('data.cond').neocodeium,
|
||||
dependencies = { 'hrsh7th/nvim-cmp' },
|
||||
},
|
||||
{ -- Codeium
|
||||
import = 'lazyvim.plugins.extras.ai.codeium',
|
||||
cond = require('data.cond').codeium,
|
||||
event = 'VeryLazy',
|
||||
lazy = true,
|
||||
opts = function()
|
||||
require('codeium.virtual_text').set_statusbar_refresh(function()
|
||||
require('lualine').refresh()
|
||||
end)
|
||||
end,
|
||||
},
|
||||
{ -- Copilot
|
||||
import = 'lazyvim.plugins.extras.ai.copilot',
|
||||
cond = require('data.cond').copilot,
|
||||
},
|
||||
{ -- Copilot
|
||||
import = 'lazyvim.plugins.extras.ai.copilot-chat',
|
||||
},
|
||||
{ -- Tabnine
|
||||
import = 'lazyvim.plugins.extras.ai.tabnine',
|
||||
cond = require('data.cond').tabnine,
|
||||
},
|
||||
{ -- Minuet-AI
|
||||
'milanglacier/minuet-ai.nvim',
|
||||
dependencies = require('data.deps').minuet,
|
||||
|
||||
@@ -30,9 +30,6 @@ if vim.g.useblinkcmp then
|
||||
vim.g.lazyvim_blink_main = true
|
||||
end
|
||||
return {
|
||||
{ -- Blink completion
|
||||
import = 'lazyvim.plugins.extras.coding.blink',
|
||||
},
|
||||
{
|
||||
'saghen/blink.cmp',
|
||||
opts = {
|
||||
@@ -170,7 +167,6 @@ end
|
||||
|
||||
-- Else use nvim-cmp
|
||||
return {
|
||||
{ import = 'lazyvim.plugins.extras.coding.nvim-cmp' },
|
||||
{ -- cmp
|
||||
url = cmp_repo.url,
|
||||
build = cmp_repo.build,
|
||||
|
||||
@@ -9,9 +9,6 @@ return {
|
||||
'williamboman/mason-lspconfig.nvim',
|
||||
opts = require('data.types').mason_lsp_config.opts,
|
||||
},
|
||||
{ -- luasnip
|
||||
import = 'lazyvim.plugins.extras.coding.luasnip',
|
||||
},
|
||||
{ -- nvim-treesitter
|
||||
'nvim-treesitter/nvim-treesitter',
|
||||
opts = require('data.types').treesitter.opts,
|
||||
@@ -26,18 +23,12 @@ return {
|
||||
'neovim/nvim-lspconfig',
|
||||
opts = require('data.types').lspconfig.opts,
|
||||
},
|
||||
{ -- Yanky
|
||||
import = 'lazyvim.plugins.extras.coding.yanky',
|
||||
},
|
||||
{ -- Yanky
|
||||
'gbprod/yanky.nvim',
|
||||
requires = { 'kkharji/sqlite.lua' },
|
||||
opts = require('data.types').yanky,
|
||||
keys = require('data.keys').yanky,
|
||||
},
|
||||
{ -- Neogen
|
||||
import = 'lazyvim.plugins.extras.coding.neogen',
|
||||
},
|
||||
{
|
||||
'folke/lazydev.nvim',
|
||||
opts = {
|
||||
|
||||
@@ -6,11 +6,6 @@
|
||||
|
||||
return {
|
||||
-- require("config.rocks").plugin_spec,
|
||||
{ -- LazyVim
|
||||
'LazyVim/LazyVim',
|
||||
priority = 900,
|
||||
opts = require('data.types').lazyvim.opts,
|
||||
},
|
||||
{ -- Bufferline
|
||||
'akinsho/bufferline.nvim',
|
||||
cond = require('data.types').bufferline.enabled,
|
||||
|
||||
@@ -5,15 +5,6 @@
|
||||
-- ╰─────────────────────────────────────────────────────────╯
|
||||
|
||||
return {
|
||||
{ -- DAP Core
|
||||
import = 'lazyvim.plugins.extras.dap.core',
|
||||
},
|
||||
{ -- DAP Neovim Lua Adapter
|
||||
import = 'lazyvim.plugins.extras.dap.nlua',
|
||||
},
|
||||
{ -- NeoTest
|
||||
import = 'lazyvim.plugins.extras.test.core',
|
||||
},
|
||||
{ -- Neotest Plenary
|
||||
'nvim-neotest/neotest-plenary',
|
||||
},
|
||||
|
||||
@@ -5,16 +5,6 @@
|
||||
-- ╰─────────────────────────────────────────────────────────╯
|
||||
|
||||
return {
|
||||
{ -- Aerial
|
||||
import = 'lazyvim.plugins.extras.editor.aerial',
|
||||
},
|
||||
{ import = 'lazyvim.plugins.extras.ui.smear-cursor' },
|
||||
{ -- Dial
|
||||
import = 'lazyvim.plugins.extras.editor.dial',
|
||||
},
|
||||
{ -- Illuminate
|
||||
import = 'lazyvim.plugins.extras.editor.illuminate',
|
||||
},
|
||||
{ -- Illuminate
|
||||
'ehpi/vim-illuminate',
|
||||
opts = {
|
||||
@@ -26,22 +16,6 @@ return {
|
||||
},
|
||||
},
|
||||
},
|
||||
{ -- Outline
|
||||
import = 'lazyvim.plugins.extras.editor.outline',
|
||||
},
|
||||
{ -- IncRename
|
||||
|
||||
import = 'lazyvim.plugins.extras.editor.inc-rename',
|
||||
},
|
||||
{ -- Treesitter-context
|
||||
import = 'lazyvim.plugins.extras.ui.treesitter-context',
|
||||
},
|
||||
{ -- Navic
|
||||
import = 'lazyvim.plugins.extras.editor.navic',
|
||||
},
|
||||
{ -- Refactoring
|
||||
import = 'lazyvim.plugins.extras.editor.refactoring',
|
||||
},
|
||||
{ -- Grug-Far
|
||||
'MagicDuck/grug-far.nvim',
|
||||
opts = {
|
||||
|
||||
@@ -5,9 +5,6 @@
|
||||
-- ╰─────────────────────────────────────────────────────────╯
|
||||
|
||||
return {
|
||||
{ -- Octo plugin
|
||||
import = 'lazyvim.plugins.extras.util.octo',
|
||||
},
|
||||
{ -- Gist Tools
|
||||
'Rawnly/gist.nvim',
|
||||
lazy = true,
|
||||
|
||||
@@ -5,42 +5,6 @@
|
||||
-- ╰─────────────────────────────────────────────────────────╯
|
||||
|
||||
return {
|
||||
{ -- JSON
|
||||
import = 'lazyvim.plugins.extras.lang.json',
|
||||
},
|
||||
{ -- Markdown
|
||||
import = 'lazyvim.plugins.extras.lang.markdown',
|
||||
},
|
||||
{ -- Toml
|
||||
import = 'lazyvim.plugins.extras.lang.toml',
|
||||
},
|
||||
{ -- Git
|
||||
import = 'lazyvim.plugins.extras.lang.git',
|
||||
},
|
||||
{ -- Python
|
||||
import = 'lazyvim.plugins.extras.lang.python',
|
||||
},
|
||||
{ -- Yaml
|
||||
import = 'lazyvim.plugins.extras.lang.yaml',
|
||||
},
|
||||
{ -- clangd
|
||||
import = 'lazyvim.plugins.extras.lang.clangd',
|
||||
},
|
||||
{ -- cmake
|
||||
import = 'lazyvim.plugins.extras.lang.cmake',
|
||||
},
|
||||
{ -- Docker
|
||||
import = 'lazyvim.plugins.extras.lang.docker',
|
||||
},
|
||||
{ -- Java
|
||||
import = 'lazyvim.plugins.extras.lang.java',
|
||||
},
|
||||
{ -- Sql
|
||||
import = 'lazyvim.plugins.extras.lang.sql',
|
||||
},
|
||||
{ -- Rust
|
||||
import = 'lazyvim.plugins.extras.lang.rust',
|
||||
},
|
||||
{ -- Jinja
|
||||
'armyers/Vim-Jinja2-Syntax',
|
||||
},
|
||||
|
||||
@@ -10,8 +10,6 @@ return {
|
||||
event = 'VeryLazy',
|
||||
opts = {},
|
||||
},
|
||||
-- { -- Mini.Indentscope
|
||||
-- import = 'lazyvim.plugins.extras.ui.mini-indentscope',
|
||||
-- },
|
||||
{ -- Mini Indentscope
|
||||
'echasnovski/mini.indentscope',
|
||||
@@ -36,9 +34,6 @@ return {
|
||||
'echasnovski/mini.surround',
|
||||
opts = {},
|
||||
},
|
||||
{ -- mini.files
|
||||
import = 'lazyvim.plugins.extras.editor.mini-files',
|
||||
},
|
||||
{ -- mini.files
|
||||
'echasnovski/mini.files',
|
||||
opts = require('data.types').minifiles.opts,
|
||||
|
||||
+26
-25
@@ -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
|
||||
|
||||
@@ -5,12 +5,6 @@
|
||||
-- ╰─────────────────────────────────────────────────────────╯
|
||||
|
||||
return {
|
||||
{ -- Chezmoi
|
||||
import = 'lazyvim.plugins.extras.util.chezmoi',
|
||||
},
|
||||
{ -- Dotfiles plugins
|
||||
import = 'lazyvim.plugins.extras.util.dot',
|
||||
},
|
||||
{ -- Env file no diagnostics
|
||||
'nvim-treesitter/nvim-treesitter',
|
||||
lazy = true,
|
||||
|
||||
Reference in New Issue
Block a user