[nvim] feat: custom icons for packer

also require it at the beginning
This commit is contained in:
David JULIEN 2022-05-04 22:59:13 +02:00
parent f25ef3e9be
commit 583121534c

View File

@ -1,9 +1,10 @@
-- Author : swytch -- Author : swytch
-- Created : Friday Mar 12, 2021 22:28:34 CET -- Created : Friday Mar 12, 2021 22:28:34 CET
-- License : GPLv3 -- License : GPLv3
-- Description : neovim plugins file -- Description : neovim packer config file
local packer = require("packer")
local install_path = vim.fn.stdpath("data") .. "/site/pack/packer/start/packer.nvim" local install_path = vim.fn.stdpath("data") .. "/site/pack/packer/start/packer.nvim"
if vim.fn.empty(vim.fn.glob(install_path)) > 0 then if vim.fn.empty(vim.fn.glob(install_path)) > 0 then
print("Cloning packer...") print("Cloning packer...")
@ -19,7 +20,18 @@ if vim.fn.empty(vim.fn.glob(install_path)) > 0 then
print("Done.") print("Done.")
end end
local use = require("packer").use packer.init({
display = {
working_sym = 'o', -- The symbol for a plugin being installed/updated
error_sym = '', -- The symbol for a plugin with an error in installation/updating
done_sym = '', -- The symbol for a plugin which has completed installation/updating
removed_sym = '-', -- The symbol for an unused plugin which was removed
moved_sym = '', -- The symbol for a plugin which was moved (e.g. from opt to start)
header_sym = '', -- The symbol for the header line in packer's display
},
})
local use = packer.use
return require("packer").startup(function() return require("packer").startup(function()
-- packer manages itself -- packer manages itself