summaryrefslogtreecommitdiff
path: root/vim/.vim/after/plugin/status.vim
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2023-01-13 19:12:00 +0100
committerUrbain Vaes <urbain@vaes.uk>2023-01-13 19:12:00 +0100
commitb9c6d426220abb93a05755402b81d3c87fe73210 (patch)
tree45e500a95f1a72fbddc1298820f853b9231e2c46 /vim/.vim/after/plugin/status.vim
parent92f6ded81af5f4a55c079afdf7dc7abf2a490328 (diff)
Change emojis
Diffstat (limited to 'vim/.vim/after/plugin/status.vim')
-rw-r--r--vim/.vim/after/plugin/status.vim5
1 files changed, 4 insertions, 1 deletions
diff --git a/vim/.vim/after/plugin/status.vim b/vim/.vim/after/plugin/status.vim
index 05acb6e..efa7eb3 100644
--- a/vim/.vim/after/plugin/status.vim
+++ b/vim/.vim/after/plugin/status.vim
@@ -28,6 +28,9 @@ function! WinCwd()
return ""
endfunction
+let g:active_window=1
+autocmd WinEnter * let g:active_window=winnr()
+
augroup myflags
let status_line_bg = synIDattr(hlID("StatusLine"), "fg")
let status_line_fg = synIDattr(hlID("StatusLine"), "bg")
@@ -41,6 +44,6 @@ augroup myflags
autocmd User Flags call Hoist("buffer", "%{b:trailing?'[tw]':''}")
autocmd User Flags call Hoist("buffer", "%{b:mixed?'[mixed]':''}")
autocmd User Flags call Hoist("buffer", "%{&paste?'[paste]':''}")
- autocmd User Flags call Hoist("window", "%{WinCwd() != '' ? '['.WinCwd().']' : ''} 🌻")
+ autocmd User Flags call Hoist("window", "%{WinCwd() != '' ? '['.WinCwd().']' : ''} %{winnr() == g:active_window ? '🐺' : ''}")
autocmd User Flags call Hoist("global", {"hl": "MyGlobals"}, "[%{pathshorten(GlobalCwd())}, %{g:my_searchprgs[g:my_searchprg]}, %{g:my_findprgs[g:my_findprg]}] 🌿")
augroup END