bluz71 / nvim-linefly

A simple Lua statusline for Neovim
MIT License
79 stars 2 forks source link

Use 'vim.system' to obtain git branch name (for Neovim 0.10 and later) #7

Closed bluz71 closed 1 month ago

bluz71 commented 10 months ago

Neovim 0.10 provides a new vim.system function.

This should be used instead of io.popen here for modern versions of Neovim.

bluz71 commented 1 month ago

Turns out vim.system is about 1ms slower than io.popen.

Not worth the trouble unless io.popen is deprecated down the road (which for now it isn't).