Update to use nvim for mergetool & battery config update

This commit is contained in:
Salar Rahmanian 2022-09-21 20:13:17 -07:00
parent 90571fac9e
commit 285f132d14
3 changed files with 12 additions and 10 deletions

View file

@ -85,7 +85,7 @@ _G.load_config = function()
show_status_when_no_battery = true, -- Don't show any icon or text when no battery found (desktop for example)
show_plugged_icon = true, -- If true show a cable icon alongside the battery icon when plugged in
show_unplugged_icon = true, -- When true show a diconnected cable icon when not plugged in
show_percent = false, -- Whether or not to show the percent charge remaining in digits
show_percent = true, -- Whether or not to show the percent charge remaining in digits
vertical_icons = true, -- When true icons are vertical, otherwise shows horizontal battery icon
})

View file

@ -181,7 +181,9 @@ gls.right[4] = {
gls.right[5] = {
BatteryNvim = {
provider = function()
return require 'battery'.get_status_line()
local status = require 'battery'.get_status_line()
local formatted = string.format(status)
return formatted
end,
separator = '',
separator_highlight = { colors.bg, colors.purple },