aboutsummaryrefslogtreecommitdiff
path: root/vimrc
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2021-12-03 10:49:53 +0000
committerJuan J. Martinez <jjm@usebox.net>2022-05-29 22:57:30 +0100
commitaa32996d8f69679e1e5caa34de4e7a391b3ac694 (patch)
treed9690c96c1e67adc26d7551cec8d83551d2e0a91 /vimrc
parentc33466bf0642f74f0e70cc4f2dbac0f63e0d2133 (diff)
downloaddotnvim-aa32996d8f69679e1e5caa34de4e7a391b3ac694.tar.gz
dotnvim-aa32996d8f69679e1e5caa34de4e7a391b3ac694.zip
Better status
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc19
1 files changed, 15 insertions, 4 deletions
diff --git a/vimrc b/vimrc
index 8852748..fa88dde 100644
--- a/vimrc
+++ b/vimrc
@@ -75,17 +75,30 @@ end
call plug#end()
" crystaline conf
+
+" metals status
+function! MetalsStatus() abort
+ return get(g:, 'metals_status', '')
+endfunction
+
function! StatusLine(current, width)
let l:s = ''
if a:current
let l:s .= crystalline#mode() . crystalline#right_mode_sep('')
+ else
+ let l:s .= '%#CrystallineInactive#'
+ endif
+ let l:s .= ' %<%f%h%w%m%r '
+
+ if a:current
+ let l:s .= crystalline#right_sep('', 'Fill') . ' %{fugitive#head()}'
endif
- let l:s .= '%#Crystalline# %<%f%h%w%m%r %{fugitive#statusline()}'
let l:s .= '%='
if a:current
- let l:s .= ' %{&paste ?"PASTE ":""}%{&spell?"SPELL ":""}'
+ let l:s .= ' %{MetalsStatus()} '
+ let l:s .= crystalline#left_sep('', 'Fill') . ' %{&paste ?"PASTE ":""}%{&spell?"SPELL ":""}'
let l:s .= crystalline#left_mode_sep('')
endif
if a:width > 80
@@ -188,5 +201,3 @@ highlight link lscDiagnosticWarning GruvboxYellowSign
" haskell syntax
let g:haskell_classic_highlighting = 1
-" add you lsc_server_commands and lsc_auto_map locally
-