From e88d5ed882290bf2b329adf78af3db4e7152409e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Wo=C5=BAniak?= Date: Tue, 19 Apr 2022 00:50:51 +0200 Subject: [PATCH] nvim: Changed the status line (filetype, modification etc.) --- .config/nvim/init.vim | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 286c01f..51f6ba5 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -198,9 +198,8 @@ endfunction set statusline= set statusline+=%#IncSearch# -set statusline+=\ %y -set statusline+=\ %m -set statusline+=\ %r +set statusline+=%{&filetype!=#''?'\ \ ['.&filetype.']\ ':'\ '} +set statusline+=%{&modified?'[+]\ ':''} set statusline+=%#CursorLineNr# set statusline+=\ %F set statusline+=%= "Right side settings