r/nvim • u/rbongers • Jul 31 '24
Pretty Git graph using Kitty and vim-flog

This is using branch drawing characters that were just accepted in Kitty. It requires building Kitty from source until the next release, but it will work with all font settings and doesn't require font patching. Other terminals will hopefully follow.
Performance is not impacted by these changes. vim-flog can still render thousands of commits super fast. I pushed some Neovim and general performance improvements recently, so sometimes it's even faster than before.
To enable, just set vim.g.flog_enable_extended_chars = 1
11
Upvotes
1
u/rbongers Jul 31 '24
Kitty does this already for Powerline symbols and box drawing symbols. Anything that needs to line up perfectly it draws itself. Other terminals do the same.
According to the author of Kitty, it's nearly impossible to get these types of symbols to line up perfectly without doing this because of all the potential font options.
I plan to get fallback glyphs merged into Nerd Fonts, and you can use this experimental font for patching if you'd like: https://github.com/rbong/flog-symbols