From ce6af2ae41e7a59d590eed4d352c1966e134f395 Mon Sep 17 00:00:00 2001 From: listout Date: Sun, 2 Apr 2023 11:02:55 +0530 Subject: nvim: using lualine Signed-off-by: listout --- lua/plugins/statusline.lua | 56 ---------------------------------------------- 1 file changed, 56 deletions(-) delete mode 100644 lua/plugins/statusline.lua (limited to 'lua') diff --git a/lua/plugins/statusline.lua b/lua/plugins/statusline.lua deleted file mode 100644 index 11c1435..0000000 --- a/lua/plugins/statusline.lua +++ /dev/null @@ -1,56 +0,0 @@ -vim.cmd([[ - function! StatusDiagnostic() abort - let info = get(b:, 'coc_diagnostic_info', {}) - if empty(info) | return '' | endif - let msgs = [] - if get(info, 'error', 0) - call add(msgs, 'E' . info['error']) - endif - if get(info, 'warning', 0) - call add(msgs, 'W' . info['warning']) - endif - return join(msgs, ' '). ' ' . get(g:, 'coc_status', '') - endfunction - - "let g:currentmode={ - "\ 'n' : 'NORMAL ', - "\ 'no' : 'N·Operator Pending ', - "\ 'v' : 'VISUAL ', - "\ 'V' : 'V·Line ', - "\ "\" : 'V·Block ', - "\ 's' : 'Select ', - "\ 'S' : 'S·Line ', - "\ 'x19' : 'S·Block ', - "\ 'i' : 'INSERT ', - "\ 'R' : 'REPLACE ', - "\ 'Rv' : 'V·Replace ', - "\ 'c' : 'Command ', - "\ 'cv' : 'Vim Ex ', - "\ 'ce' : 'Ex ', - "\ 'r' : 'Prompt ', - "\ 'rm' : 'More ', - "\ 'r?' : 'Confirm ', - "\ '!' : 'Shell ', - "\ 't' : 'Terminal ' - "\} - - function! ReadOnly() - if &readonly || !&modifiable - return '' - else - return '' - endfunction - - set statusline= - "set statusline+=\ %{toupper(g:currentmode[mode()])} - set statusline^=%{StatusDiagnostic()} - set statusline+=%8*\ %<%f\ %{ReadOnly()}\ %w - set statusline+=%{&modified?'[+]':''} - set statusline+=%= - set statusline+=\ %y - "set statusline+=\ %{&fileencoding?&fileencoding:&encoding} - "set statusline+=\[%{&fileformat}\] - set statusline+=\ %p%% - set statusline+=\ %l:%c - set statusline+=\ " -]]) -- cgit v1.2.3