vimcaps icon indicating copy to clipboard operation
vimcaps copied to clipboard

New style for NerdFonts and redraws

Open tkapias opened this issue 2 years ago • 2 comments

Thanks for this plugin!

I lost a a few hours trying to write a function using system() for lightline by myself, but it was giving me bugs outputing movement keycodes everywhere.

  • I would like to start by proposing an additional style for people using a NerdFonts font:
    let names["nerd"] = [[" ", "󰪛"], [" ", "󰎣"], [" ", "󰰡"]]
  • And also suggest adding to the readme the ability to trigger statusline redraws in .vimrc:
" redraw statusline every 1000ms for Vimcaps
call timer_start(1000, {-> execute(':let &stl=&stl')}, {'repeat': -1})

tkapias avatar Jul 23 '23 09:07 tkapias

  • And another suggestion to change locks output order to stick to most keyboards leds (Num, Caps, Scroll):
let names["nerd"] = [[" ", "󰎦"], [" ", "󰪛"], [" ", "󱑣"]]
...
let locks = [2, 1, 4]               " capslock, numlock, scrollock

Ex: Left side of my Lightline statusline:

image

tkapias avatar Jul 23 '23 09:07 tkapias

Great suggestions!

I'll try finding some time to do that, or perhaps drop a PR here?

suxpert avatar Oct 24 '23 05:10 suxpert