NixOS 24.11: Remove remaining warnings
This commit is contained in:
parent
495b9cb2e1
commit
1fb9a149a5
|
@ -1,4 +1,7 @@
|
||||||
{ pkgs, lib, config, ... }:
|
{ pkgs, lib, config, nixvimLib, ... }:
|
||||||
|
let
|
||||||
|
nv = nixvimLib.nixvim;
|
||||||
|
in
|
||||||
{
|
{
|
||||||
config = {
|
config = {
|
||||||
programs = {
|
programs = {
|
||||||
|
@ -56,61 +59,59 @@
|
||||||
settings = rec {
|
settings = rec {
|
||||||
inactive_sections = sections;
|
inactive_sections = sections;
|
||||||
sections = {
|
sections = {
|
||||||
lualine_a = [{
|
lualine_a = [
|
||||||
name = ''string.format('%d', vim.fn.line('$'))'';
|
(nv.listToUnkeyedAttrs [ "string.format('%d', vim.fn.line('$'))" ])
|
||||||
}];
|
|
||||||
lualine_b = [
|
|
||||||
"mode"
|
|
||||||
];
|
];
|
||||||
lualine_c = [{
|
lualine_b = [ "mode" ];
|
||||||
name = "filename";
|
lualine_c = [
|
||||||
color = {
|
((nv.listToUnkeyedAttrs [ "filename" ]) // {
|
||||||
__raw = ''
|
color = nv.mkRaw ''
|
||||||
function(section)
|
function(section)
|
||||||
return { fg = vim.bo.modified and '${base08}' or '${normal.fg}' }
|
return { fg = vim.bo.modified and '${base08}' or '${normal.fg}' }
|
||||||
end
|
end
|
||||||
'';
|
'';
|
||||||
};
|
path = 1; # Relative path
|
||||||
path = 1; # Relative path
|
symbols = {
|
||||||
symbols = {
|
modified = "●";
|
||||||
modified = "●";
|
newfile = "";
|
||||||
newfile = "";
|
readonly = "";
|
||||||
readonly = "";
|
unnamed = "";
|
||||||
unnamed = "";
|
};
|
||||||
};
|
})
|
||||||
}
|
"location"
|
||||||
"location"];
|
];
|
||||||
lualine_x = [{
|
lualine_x = [
|
||||||
name = ''(next(vim.lsp.buf_get_clients()) == nil) and " " or ""'';
|
((nv.listToUnkeyedAttrs [ ''(next(vim.lsp.buf_get_clients()) == nil) and " " or ""'' ]) // {
|
||||||
separator = { left = ""; right = ""; };
|
separator = { left = ""; right = ""; };
|
||||||
}] ++ (lib.mapAttrsToList
|
})
|
||||||
(diag_name: diag_color: {
|
] ++ (lib.mapAttrsToList
|
||||||
name = "diagnostics";
|
(diag_name: diag_color: ((nv.listToUnkeyedAttrs [ "diagnostics" ]) // {
|
||||||
color.bg = diag_color;
|
color.bg = diag_color;
|
||||||
colored = false;
|
colored = false;
|
||||||
separator = { left = ""; right = ""; };
|
separator = { left = ""; right = ""; };
|
||||||
sections = [ diag_name ];
|
sections = [ diag_name ];
|
||||||
})
|
}))
|
||||||
{
|
{
|
||||||
error = base08;
|
error = base08;
|
||||||
warn = base0A;
|
warn = base0A;
|
||||||
hint = base0C;
|
hint = base0C;
|
||||||
info = base0B;
|
info = base0B;
|
||||||
});
|
});
|
||||||
lualine_y = [{
|
lualine_y = [
|
||||||
name = "diff";
|
((nv.listToUnkeyedAttrs [ "diff" ]) // {
|
||||||
diff_color = {
|
diff_color = {
|
||||||
added.fg = base0B;
|
added.fg = base0B;
|
||||||
modified.fg = base0A;
|
modified.fg = base0A;
|
||||||
removed.fg = base08;
|
removed.fg = base08;
|
||||||
};
|
};
|
||||||
symbols = {
|
symbols = {
|
||||||
added = " ";
|
added = " ";
|
||||||
modified = " ";
|
modified = " ";
|
||||||
removed = " ";
|
removed = " ";
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
"branch"];
|
"branch"
|
||||||
|
];
|
||||||
lualine_z = [
|
lualine_z = [
|
||||||
"filetype"
|
"filetype"
|
||||||
"fileformat"
|
"fileformat"
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
config = lib.mkIf config.frogeye.gaming
|
config = lib.mkIf config.frogeye.gaming
|
||||||
{
|
{
|
||||||
programs.steam.enable = true;
|
programs.steam.enable = true;
|
||||||
hardware.opengl.driSupport32Bit = true; # Enables support for 32bit libs that steam uses
|
hardware.graphics.enable32Bit = true; # Needed by Steam
|
||||||
services = {
|
services = {
|
||||||
udev.packages = [ pkgs.python3Packages.ds4drv ];
|
udev.packages = [ pkgs.python3Packages.ds4drv ];
|
||||||
xserver.config = ''
|
xserver.config = ''
|
||||||
|
|
Loading…
Reference in a new issue