From ab661fb3b801c1ad41559d3f039cff53557ce9f6 Mon Sep 17 00:00:00 2001 From: michaelslec <57121017+michaelslec@users.noreply.github.com> Date: Thu, 18 Mar 2021 22:01:39 -0700 Subject: fix: packpath error on first run (#139) packadd command not working because it was not installed on first run. Co-authored-by: Christian Chiarulli --- lua/plugins.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lua/plugins.lua') diff --git a/lua/plugins.lua b/lua/plugins.lua index c62867c5..6f96990f 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -1,3 +1,5 @@ +vim.cmd [[packadd packer.nvim]] + local execute = vim.api.nvim_command local fn = vim.fn @@ -8,8 +10,6 @@ if fn.empty(fn.glob(install_path)) > 0 then execute 'packadd packer.nvim' end -vim.cmd [[packadd packer.nvim]] - vim.cmd 'autocmd BufWritePost plugins.lua PackerCompile' -- Auto compile when there are changes in plugins.lua return require('packer').startup(function(use) -- cgit v1.2.3