comment out battery nixvim

This commit is contained in:
2025-03-20 11:04:17 +01:00
parent cb8f40ca7a
commit bfced18342

112
home.nix
View File

@@ -347,24 +347,24 @@ in {
enable = true; enable = true;
settings = { settings = {
sections = { sections = {
lualine_z = [ '' # lualine_z = [ ''
{ # {
function() return require("battery").get_status_line() end # function() return require("battery").get_status_line() end
} # }
'' ]; # '' ];
}; };
}; };
luaConfig.pre = '' # luaConfig.pre = ''
require("battery").setup({ # require("battery").setup({
update_rate_seconds = 30, -- Number of seconds between checking battery status # update_rate_seconds = 30, -- Number of seconds between checking battery status
show_status_when_no_battery = true, -- Don't show any icon or text when no battery found (desktop for example) # 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_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_unplugged_icon = true, -- When true show a diconnected cable icon when not plugged in
show_percent = true, -- 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 # vertical_icons = true, -- When true icons are vertical, otherwise shows horizontal battery icon
multiple_battery_selection = "min", -- Which battery to choose when multiple found. "max" or "maximum", "min" or "minimum" or a number to pick the nth battery found (currently linux acpi only) # multiple_battery_selection = "min", -- Which battery to choose when multiple found. "max" or "maximum", "min" or "minimum" or a number to pick the nth battery found (currently linux acpi only)
}); # });
''; # '';
}; };
coq-nvim.enable = true; coq-nvim.enable = true;
@@ -822,46 +822,46 @@ in {
} }
''; '';
extraPlugins = [ # extraPlugins = [
(pkgs.neovimUtils.buildNeovimPlugin { # (pkgs.neovimUtils.buildNeovimPlugin {
luaAttr = pkgs.lua51Packages.buildLuarocksPackage { # luaAttr = pkgs.lua51Packages.buildLuarocksPackage {
pname = "battery.nvim"; # pname = "battery.nvim";
version = "scm-1"; # version = "scm-1";
src = pkgs.fetchFromGitHub { # src = pkgs.fetchFromGitHub {
owner = "justinhj"; # owner = "justinhj";
repo = "battery.nvim"; # repo = "battery.nvim";
rev = "5b0fc97f8ae29ddd2668eced7f352337d5d07f52"; # rev = "5b0fc97f8ae29ddd2668eced7f352337d5d07f52";
sha256 = "sha256-RgCk/BFi8vb6SAq6NchcRm/Lshvvw7hymxGNY0A+M1U="; # sha256 = "sha256-RgCk/BFi8vb6SAq6NchcRm/Lshvvw7hymxGNY0A+M1U=";
}; # };
propagatedBuildInputs = [ # propagatedBuildInputs = [
pkgs.lua51Packages.plenary-nvim # pkgs.lua51Packages.plenary-nvim
]; # ];
disabled = pkgs.lua51Packages.lua.luaversion != "5.1"; # disabled = pkgs.lua51Packages.lua.luaversion != "5.1";
knownRockspec = pkgs.writeText "battery.nvim-scm-1.rockspec" '' # knownRockspec = pkgs.writeText "battery.nvim-scm-1.rockspec" ''
package = "battery.nvim" # package = "battery.nvim"
version = "scm-1" # version = "scm-1"
source = { # source = {
url = "git://github.com/justinhj/battery.nvim", # url = "git://github.com/justinhj/battery.nvim",
} # }
dependencies = { # dependencies = {
"lua == 5.1", # "lua == 5.1",
"plenary.nvim", # "plenary.nvim",
} # }
build = { # build = {
type = "builtin", # type = "builtin",
modules = { # modules = {
battery = "lua/battery/battery.lua", # battery = "lua/battery/battery.lua",
}, # },
copy_directories = { # copy_directories = {
"doc", # "doc",
"plugin", # "plugin",
} # }
} # }
''; # '';
}; # };
nvimRequiredCheck = "battery"; # nvimRequiredCheck = "battery";
}) # })
]; # ];
}; };
programs.zsh = { programs.zsh = {