justinhj / battery.nvim

Neovim plugin to detect and view battery information
MIT License
59 stars 9 forks source link

Support charging battery icons #4

Open justinhj opened 2 years ago

justinhj commented 2 years ago

In battery.lua you will find

local charging_battery_icons

For this task add user configuration option to toggle the use of icons that have the charging symbol on them when the AC power is connected.

The structure is a list of icons and the max power required to show that icon. You can check the vertical icon handling code to see how to implement for other icons.

local function discharging_battery_icon_for_percent(p)