[nvim] fix: call packer *after* downloading it

This commit is contained in:
David JULIEN 2022-11-10 20:52:33 +01:00
parent f76d95e482
commit 2e26e7df30
1 changed files with 2 additions and 1 deletions

View File

@ -4,7 +4,6 @@
-- Description : neovim packer config file
local packer = require("packer")
local install_path = vim.fn.stdpath("data") .. "/site/pack/packer/start/packer.nvim"
if vim.fn.empty(vim.fn.glob(install_path)) > 0 then
print("Cloning packer...")
@ -20,6 +19,8 @@ if vim.fn.empty(vim.fn.glob(install_path)) > 0 then
print("Done.")
end
local packer = require("packer")
packer.init({
display = {
working_sym = '', -- The symbol for a plugin being installed/updated