From 2be0ed3f5629a711b34bd3448d304b63fb05f2e2 Mon Sep 17 00:00:00 2001 From: Tomas Slusny Date: Tue, 20 Feb 2024 20:13:50 +0100 Subject: [PATCH] Redraw before echo to prevent messing up screen when echoing and doing soemthing else --- lua/lspecho/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/lspecho/init.lua b/lua/lspecho/init.lua index a96b95b..9910282 100644 --- a/lua/lspecho/init.lua +++ b/lua/lspecho/init.lua @@ -38,7 +38,7 @@ local function log(msg) end end - vim.api.nvim_command(string.format('echo "%s"', string.sub(out, 1, vim.v.echospace))) + vim.api.nvim_command(string.format('redraw | echo "%s"', string.sub(out, 1, vim.v.echospace))) end local function lsp_progress(err, progress, ctx)