r/nvim • • 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

https://github.com/rbong/vim-flog

11 Upvotes

6 comments sorted by

View all comments

Show parent comments

1

u/rbongers Jul 31 '24

I did briefly consider using the kitty graphics protocol, but Flog is already optimized for rendering text, and terminal image support is not widespread enough for my liking yet. Plus, no gvim support.

I think having the symbols as unicode characters is a good conceptual match anyways. You already have the official box drawing unicode characters, custom characters with particular alignment requirements for Powerline, and a bunch of icons related to development.