Only works on Linux
This project is somewhat of an experiment into writing vim plugins in Rust.
I wrote this plugin because I wanted to have my git branch in my statusline
without having to run
git over and over again. And without using a
large git plugin.
So I wrote this plugin. It's fairly simple, I listens for modifications to
.git/HEAD, then sets
g:async_git_status to the branch name. So you can
g:async_git_status in your status line and call it a day.
g:async_git_statusin your statusline.
I wanted to use async Rust so I decided to forgo the existing neovim rpc Rust
libraries. I found a library called
which provided a nice async msgpack-rpc client. Then I used
smol as my runtime and
to detect file system changes.