From 63e5eb9341dda9ed927ac1f1e7d6cead01d84429 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Kn=C3=BCttel?= Date: Tue, 6 Jul 2021 10:45:31 +0200 Subject: [PATCH] an attempt to fix the LSPStatus problem --- init.vim | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/init.vim b/init.vim index 3284c81..01641ba 100644 --- a/init.vim +++ b/init.vim @@ -190,6 +190,11 @@ function! LspStatus() abort return '' endfunction +function MyLspStatus() + let tmp = LspStatus() + return tmp +endfunction + "========================= Settings For Autocompletion ========================= "=============================================================================== @@ -282,8 +287,9 @@ endif set statusline= set statusline+=%t\ %m%-y%-r%w%< -set statusline+=%=%-30.50{LspStatus()} -set statusline+=%=r:%-5l\ c:%-4v +set statusline+=%= +set statusline+=%-30.50{MyLspStatus()} +set statusline+=r:%-5l\ c:%-4v set laststatus=2