Simplify plugin management even more (#1518)
This commit is contained in:
parent
f0c93c8472
commit
d61946d3bf
5 changed files with 70 additions and 106 deletions
|
@ -2,14 +2,6 @@ local M = {}
|
|||
|
||||
local load_override = require("core.utils").load_override
|
||||
|
||||
M.nvchad_ui = function()
|
||||
local present, nvchad_ui = pcall(require, "nvchad_ui")
|
||||
|
||||
if present then
|
||||
nvchad_ui.setup()
|
||||
end
|
||||
end
|
||||
|
||||
M.autopairs = function()
|
||||
local present1, autopairs = pcall(require, "nvim-autopairs")
|
||||
local present2, cmp = pcall(require, "cmp")
|
||||
|
@ -170,4 +162,22 @@ M.devicons = function()
|
|||
end
|
||||
end
|
||||
|
||||
M.packer_init = function()
|
||||
return {
|
||||
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,
|
||||
},
|
||||
}
|
||||
end
|
||||
|
||||
return M
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue