Just packer shenanigans
This commit is contained in:
parent
e0f1cb3687
commit
a25f4fca70
@ -157,8 +157,9 @@ main() {
|
|||||||
if _NVIM="$(command -v nvim)"; then
|
if _NVIM="$(command -v nvim)"; then
|
||||||
if _check_nvim_version; then
|
if _check_nvim_version; then
|
||||||
printf "\n%s\n" "=> Neovim will now open." && sleep 1
|
printf "\n%s\n" "=> Neovim will now open." && sleep 1
|
||||||
"${_NVIM}" +"autocmd User PackerComplete ++once quitall" \
|
"${_NVIM}" +'autocmd User PackerComplete ++once lua print "Waiting for PackerCompile.." vim.cmd "PackerCompile"' \
|
||||||
+":lua require 'pluginList' vim.cmd('PackerSync')"
|
+'autocmd User PackerCompileDone ++once quitall' \
|
||||||
|
+'lua print "Wait for PackerUpdate and PackerCompile to complete.." require "pluginList" vim.cmd "PackerUpdate"'
|
||||||
"${_NVIM}"
|
"${_NVIM}"
|
||||||
else
|
else
|
||||||
printf "Error: Neovim is installed, but version is lower than 0.5.x, install Neovim >= 5.x and then run nvim & do :PackerSync\n."
|
printf "Error: Neovim is installed, but version is lower than 0.5.x, install Neovim >= 5.x and then run nvim & do :PackerSync\n."
|
||||||
|
@ -79,9 +79,10 @@ if
|
|||||||
)
|
)
|
||||||
then
|
then
|
||||||
-- This should only trigger when in need of PackerSync, so better do it
|
-- This should only trigger when in need of PackerSync, so better do it
|
||||||
print("After completion of PackerSync, restart neovim.")
|
print("After completion of PackerCompile, restart neovim.")
|
||||||
-- Trigger packer compile on PackerComplete, so it properly waits for PackerSync
|
-- Trigger packer compile on PackerComplete, so it properly waits for PackerSync
|
||||||
vim.cmd 'autocmd User PackerComplete ++once lua require("packer").compile()'
|
vim.cmd 'autocmd User PackerComplete ++once lua print "Waiting for PackerCompile.." require("packer").compile()'
|
||||||
|
vim.cmd 'autocmd User PackerCompileDone ++once echo "Packer Compile done, restart neovim."'
|
||||||
require "pluginList"
|
require "pluginList"
|
||||||
require("packer").sync("telescope-fzf-native.nvim", "telescope-media-files.nvim")
|
require("packer").update("telescope-fzf-native.nvim", "telescope-media-files.nvim")
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user