refactor: consolidate plugin dependencies into a central data source
This commit is contained in:
+1
-51
@@ -9,57 +9,7 @@ return {
|
||||
-- HACK: Experiemental cmp performance fork
|
||||
dev = true,
|
||||
event = "VeryLazy",
|
||||
dependencies = {
|
||||
{
|
||||
"L3MON4D3/LuaSnip",
|
||||
build = (function()
|
||||
if vim.fn.has("win32") == 1 or vim.fn.executable("make") == 0 then
|
||||
return
|
||||
end
|
||||
return "make install_jsregexp"
|
||||
end)(),
|
||||
dependencies = {
|
||||
{
|
||||
"rafamadriz/friendly-snippets",
|
||||
config = function()
|
||||
require("luasnip.loaders.from_vscode").lazy_load()
|
||||
end,
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
"petertriho/cmp-git",
|
||||
opts = {},
|
||||
config = function()
|
||||
local cmp = require("cmp")
|
||||
cmp.setup.filetype("gitcommit", {
|
||||
sources = cmp.config.sources({
|
||||
{ name = "git", priority = 50 },
|
||||
{ name = "path", priority = 40 },
|
||||
}, {
|
||||
{ name = "buffer", priority = 50 },
|
||||
}),
|
||||
})
|
||||
end,
|
||||
},
|
||||
"saadparwaiz1/cmp_luasnip",
|
||||
"hrsh7th/cmp-nvim-lsp",
|
||||
"hrsh7th/cmp-path",
|
||||
"hrsh7th/cmp-buffer",
|
||||
"onsails/lspkind.nvim",
|
||||
"hrsh7th/cmp-emoji",
|
||||
"hrsh7th/cmp-cmdline",
|
||||
{
|
||||
"chrisgrieser/cmp_yanky",
|
||||
option = {
|
||||
onlyCurrentFiletype = false,
|
||||
},
|
||||
},
|
||||
"SergioRibera/cmp-dotenv",
|
||||
"hrsh7th/cmp-calc",
|
||||
"davidsierradz/cmp-conventionalcommits",
|
||||
"Dynge/gitmoji.nvim",
|
||||
},
|
||||
dependencies = data.deps.cmp,
|
||||
-- :
|
||||
config = function()
|
||||
local cmp = require("cmp")
|
||||
|
||||
Reference in New Issue
Block a user