mirror of
https://github.com/CompeyDev/my-nvim-setup.git
synced 2024-12-13 13:30:41 +00:00
42 lines
880 B
Lua
42 lines
880 B
Lua
local M = {}
|
|
|
|
M.options = {
|
|
auto_clean = true,
|
|
compile_on_sync = true,
|
|
git = { clone_timeout = 6000 },
|
|
display = {
|
|
working_sym = "ﲊ",
|
|
error_sym = "✗ ",
|
|
done_sym = " ",
|
|
removed_sym = " ",
|
|
moved_sym = "",
|
|
open_fn = function()
|
|
return require("packer.util").float { border = "single" }
|
|
end,
|
|
},
|
|
}
|
|
|
|
-- merge overrides if there are any
|
|
M.options = require("core.utils").load_override(M.options, "wbthomason/packer.nvim")
|
|
|
|
M.run = function(plugins)
|
|
local present, packer = pcall(require, "packer")
|
|
|
|
if not present then
|
|
return
|
|
end
|
|
|
|
-- Override with chadrc values
|
|
plugins = require("core.utils").remove_default_plugins(plugins)
|
|
plugins = require("core.utils").merge_plugins(plugins)
|
|
|
|
packer.init(M.options)
|
|
|
|
packer.startup(function(use)
|
|
for _, v in pairs(plugins) do
|
|
use(v)
|
|
end
|
|
end)
|
|
end
|
|
|
|
return M
|