telescope: Fix a bug introduced in 0023233

PackerCompile at the same time conflicts with packer sync because packer always runs in bg
This commit is contained in:
Akianonymus 2021-07-19 12:42:21 +05:30
parent 3669af3517
commit 2567ebaee4

View file

@ -77,7 +77,7 @@ 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 PackerSync, restart neovim.")
-- Trigger packer compile on PackerComplete, so it properly waits for PackerSync
vim.cmd 'autocmd User PackerComplete ++once lua require("packer").compile()'
require("packer").sync("telescope-fzf-native.nvim", "telescope-media-files.nvim") require("packer").sync("telescope-fzf-native.nvim", "telescope-media-files.nvim")
-- why compile too ? well, packer is supposed to compile with sync only, but sometimes it doesn't work
vim.cmd("PackerCompile")
end end