From 585266dcefae246db3e5e1febc25dc749e762fd6 Mon Sep 17 00:00:00 2001 From: Akianonymus Date: Sat, 2 Oct 2021 10:59:23 +0530 Subject: [PATCH] fix: Packer blank window on PackerSync --- lua/plugins/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/plugins/init.lua b/lua/plugins/init.lua index 127a5ef..52ccef4 100644 --- a/lua/plugins/init.lua +++ b/lua/plugins/init.lua @@ -120,7 +120,7 @@ return packer.startup(function() require("core.utils").packer_lazy_load "nvim-lspconfig" -- reload the current file so lsp actually starts for it vim.defer_fn(function() - vim.cmd "silent! e %" + vim.cmd 'if &ft == "packer" | echo "" | else | silent! e %' end, 0) end, config = override_req("lspconfig", "plugins.configs.lspconfig"),