From a86f1d2f31bb0e89d4488a9361538cc59776475c Mon Sep 17 00:00:00 2001 From: jdhao Date: Thu, 30 Dec 2021 22:33:06 +0800 Subject: [PATCH] refactor: capture command output silently --- autoload/utils.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/utils.vim b/autoload/utils.vim index 8f528fb..5e762f3 100644 --- a/autoload/utils.vim +++ b/autoload/utils.vim @@ -175,7 +175,7 @@ endfunction " Ref: https://stackoverflow.com/q/2573021/6064933 and https://unix.stackexchange.com/q/8101/221410 . function! utils#CaptureCommandOutput(command) abort redir @m - execute a:command + silent! execute a:command redir END call v:lua.vim.notify("command output captured to register m", "info", {'title': 'nvim-config'}) "create a scratch buffer for dumping the text, ref: https://vi.stackexchange.com/a/11311/15292.