mirror of
https://github.com/fredrikr79/nixos.git
synced 2025-12-19 08:00:23 +01:00
comment out battery nixvim
This commit is contained in:
112
home.nix
112
home.nix
@@ -347,24 +347,24 @@ in {
|
||||
enable = true;
|
||||
settings = {
|
||||
sections = {
|
||||
lualine_z = [ ''
|
||||
{
|
||||
function() return require("battery").get_status_line() end
|
||||
}
|
||||
'' ];
|
||||
# lualine_z = [ ''
|
||||
# {
|
||||
# function() return require("battery").get_status_line() end
|
||||
# }
|
||||
# '' ];
|
||||
};
|
||||
};
|
||||
luaConfig.pre = ''
|
||||
require("battery").setup({
|
||||
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_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 = 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
|
||||
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)
|
||||
});
|
||||
'';
|
||||
# luaConfig.pre = ''
|
||||
# require("battery").setup({
|
||||
# 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_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 = 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
|
||||
# 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;
|
||||
@@ -822,46 +822,46 @@ in {
|
||||
}
|
||||
'';
|
||||
|
||||
extraPlugins = [
|
||||
(pkgs.neovimUtils.buildNeovimPlugin {
|
||||
luaAttr = pkgs.lua51Packages.buildLuarocksPackage {
|
||||
pname = "battery.nvim";
|
||||
version = "scm-1";
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "justinhj";
|
||||
repo = "battery.nvim";
|
||||
rev = "5b0fc97f8ae29ddd2668eced7f352337d5d07f52";
|
||||
sha256 = "sha256-RgCk/BFi8vb6SAq6NchcRm/Lshvvw7hymxGNY0A+M1U=";
|
||||
};
|
||||
propagatedBuildInputs = [
|
||||
pkgs.lua51Packages.plenary-nvim
|
||||
];
|
||||
disabled = pkgs.lua51Packages.lua.luaversion != "5.1";
|
||||
knownRockspec = pkgs.writeText "battery.nvim-scm-1.rockspec" ''
|
||||
package = "battery.nvim"
|
||||
version = "scm-1"
|
||||
source = {
|
||||
url = "git://github.com/justinhj/battery.nvim",
|
||||
}
|
||||
dependencies = {
|
||||
"lua == 5.1",
|
||||
"plenary.nvim",
|
||||
}
|
||||
build = {
|
||||
type = "builtin",
|
||||
modules = {
|
||||
battery = "lua/battery/battery.lua",
|
||||
},
|
||||
copy_directories = {
|
||||
"doc",
|
||||
"plugin",
|
||||
}
|
||||
}
|
||||
'';
|
||||
};
|
||||
nvimRequiredCheck = "battery";
|
||||
})
|
||||
];
|
||||
# extraPlugins = [
|
||||
# (pkgs.neovimUtils.buildNeovimPlugin {
|
||||
# luaAttr = pkgs.lua51Packages.buildLuarocksPackage {
|
||||
# pname = "battery.nvim";
|
||||
# version = "scm-1";
|
||||
# src = pkgs.fetchFromGitHub {
|
||||
# owner = "justinhj";
|
||||
# repo = "battery.nvim";
|
||||
# rev = "5b0fc97f8ae29ddd2668eced7f352337d5d07f52";
|
||||
# sha256 = "sha256-RgCk/BFi8vb6SAq6NchcRm/Lshvvw7hymxGNY0A+M1U=";
|
||||
# };
|
||||
# propagatedBuildInputs = [
|
||||
# pkgs.lua51Packages.plenary-nvim
|
||||
# ];
|
||||
# disabled = pkgs.lua51Packages.lua.luaversion != "5.1";
|
||||
# knownRockspec = pkgs.writeText "battery.nvim-scm-1.rockspec" ''
|
||||
# package = "battery.nvim"
|
||||
# version = "scm-1"
|
||||
# source = {
|
||||
# url = "git://github.com/justinhj/battery.nvim",
|
||||
# }
|
||||
# dependencies = {
|
||||
# "lua == 5.1",
|
||||
# "plenary.nvim",
|
||||
# }
|
||||
# build = {
|
||||
# type = "builtin",
|
||||
# modules = {
|
||||
# battery = "lua/battery/battery.lua",
|
||||
# },
|
||||
# copy_directories = {
|
||||
# "doc",
|
||||
# "plugin",
|
||||
# }
|
||||
# }
|
||||
# '';
|
||||
# };
|
||||
# nvimRequiredCheck = "battery";
|
||||
# })
|
||||
# ];
|
||||
};
|
||||
|
||||
programs.zsh = {
|
||||
|
||||
Reference in New Issue
Block a user