diff options
author | michaelslec <[email protected]> | 2021-03-18 22:01:39 -0700 |
---|---|---|
committer | GitHub <[email protected]> | 2021-03-19 01:01:39 -0400 |
commit | ab661fb3b801c1ad41559d3f039cff53557ce9f6 (patch) | |
tree | 4155355d0c0cc00e730132fdd5c9829d4853c5b9 /lua/plugins.lua | |
parent | a7c77a04b50cb7603ff37d590895ddbff5a9865c (diff) |
fix: packpath error on first run (#139)
packadd command not working because it was not installed on first run.
Co-authored-by: Christian Chiarulli <[email protected]>
Diffstat (limited to 'lua/plugins.lua')
-rw-r--r-- | lua/plugins.lua | 4 |
1 files changed, 2 insertions, 2 deletions
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) |