Explorar el Código

fix: packpath error on first run (#139)

packadd command not working because it was not installed on first run.

Co-authored-by: Christian Chiarulli <chrisatmachine@gmail.com>
michaelslec hace 4 años
padre
commit
ab661fb3b8
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      lua/plugins.lua

+ 2 - 2
lua/plugins.lua

@@ -1,3 +1,5 @@
+vim.cmd [[packadd packer.nvim]]
+
 local execute = vim.api.nvim_command
 local execute = vim.api.nvim_command
 local fn = vim.fn
 local fn = vim.fn
 
 
@@ -8,8 +10,6 @@ if fn.empty(fn.glob(install_path)) > 0 then
     execute 'packadd packer.nvim'
     execute 'packadd packer.nvim'
 end
 end
 
 
-vim.cmd [[packadd packer.nvim]]
-
 vim.cmd 'autocmd BufWritePost plugins.lua PackerCompile' -- Auto compile when there are changes in plugins.lua
 vim.cmd 'autocmd BufWritePost plugins.lua PackerCompile' -- Auto compile when there are changes in plugins.lua
 
 
 return require('packer').startup(function(use)
 return require('packer').startup(function(use)