NixOS 24.11: Some warnings removed

The lualine ones I'll have to see if it changes the way I want.
This commit is contained in:
Geoffrey Frogeye 2024-12-03 19:04:35 +01:00
parent b9bd255a55
commit f9d943ef63
Signed by: geoffrey
GPG key ID: C72403E7F82E6AD8
5 changed files with 114 additions and 82 deletions

View file

@ -390,6 +390,22 @@
"type": "github"
}
},
"labellenixpkgs": {
"locked": {
"lastModified": 1732691756,
"narHash": "sha256-/XYtpmaMUhgxebN6dJKOcy70Gf50nf+RHfQhZgbjNYc=",
"owner": "FabianRig",
"repo": "nixpkgs",
"rev": "3da636775e87fe45fe5bbe79dafb2d8ea36648ec",
"type": "github"
},
"original": {
"owner": "FabianRig",
"ref": "update-labelle-1.3.2",
"repo": "nixpkgs",
"type": "github"
}
},
"nix-darwin": {
"inputs": {
"nixpkgs": [
@ -630,16 +646,33 @@
"type": "github"
}
},
"onixpkgs": {
"locked": {
"lastModified": 1730137625,
"narHash": "sha256-9z8oOgFZiaguj+bbi3k4QhAD6JabWrnv7fscC/mt0KE=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "64b80bfb316b57cdb8919a9110ef63393d74382a",
"type": "github"
},
"original": {
"id": "nixpkgs",
"rev": "64b80bfb316b57cdb8919a9110ef63393d74382a",
"type": "indirect"
}
},
"root": {
"inputs": {
"disko": "disko",
"flake-utils": "flake-utils",
"home-manager": "home-manager",
"labellenixpkgs": "labellenixpkgs",
"nix-on-droid": "nix-on-droid",
"nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs",
"nixvim": "nixvim",
"nur": "nur",
"onixpkgs": "onixpkgs",
"stylix": "stylix",
"unixpkgs": "unixpkgs"
}
@ -679,17 +712,17 @@
"tinted-tmux": "tinted-tmux"
},
"locked": {
"lastModified": 1733153724,
"narHash": "sha256-28nueT0pl+YpwUey44InOqct4+7p+DkiKOfkBBDCOeU=",
"lastModified": 1732993760,
"narHash": "sha256-t1J6wgzGjvvGNfdd0ei8HnZf9sTw+SpvCNAX0i6Qgwc=",
"owner": "danth",
"repo": "stylix",
"rev": "74ee1ed5057e44edbcc36aa189a91d31eda60485",
"rev": "d13ffb381c83b6139b9d67feff7addf18f8408fe",
"type": "github"
},
"original": {
"owner": "danth",
"ref": "master",
"repo": "stylix",
"rev": "d13ffb381c83b6139b9d67feff7addf18f8408fe",
"type": "github"
}
},

View file

@ -54,7 +54,7 @@ in
krita
# downloading
transmission-qt
transmission_4-qt
# wine only makes sense on x86_64
] ++ lib.optionals pkgs.stdenv.isx86_64 [
wine

View file

@ -53,19 +53,21 @@ in
# Catches attention when cursor changed position
specs = {
enable = true;
settings = {
min_jump = 5;
settings.popup.fader = "require('specs').pulse_fader";
popup.fader = "require('specs').pulse_fader";
};
};
# Treesitter
treesitter = {
# Allows for better syntax highlighting
enable = true;
incrementalSelection = {
enable = true;
};
settings = {
incremental_selection.enable = true;
# indent = true; # Not very working last time I tried apparently
};
};
indent-blankline.enable = true; # Show indent guides
rainbow-delimiters.enable = true; # Randomly colore paired brackets

View file

@ -51,9 +51,10 @@
normal_ina = { fg = base02; bg = base01; };
inverted_ina = { fg = base00; bg = base02; };
in
rec {
{
enable = true;
inactiveSections = sections;
settings = rec {
inactive_sections = sections;
sections = {
lualine_a = [{
name = ''string.format('%d', vim.fn.line('$'))'';
@ -70,7 +71,6 @@
end
'';
};
extraConfig = {
path = 1; # Relative path
symbols = {
modified = "";
@ -78,21 +78,18 @@
readonly = "󰏯";
unnamed = "󱀶";
};
};
}
"location"];
lualine_x = [{
name = ''(next(vim.lsp.buf_get_clients()) == nil) and "󰒲 " or ""'';
extraConfig.separator = { left = ""; right = ""; };
separator = { left = ""; right = ""; };
}] ++ (lib.mapAttrsToList
(diag_name: diag_color: {
name = "diagnostics";
extraConfig = {
color.bg = diag_color;
colored = false;
separator = { left = ""; right = ""; };
sections = [ diag_name ];
};
})
{
error = base08;
@ -102,7 +99,6 @@
});
lualine_y = [{
name = "diff";
extraConfig = {
diff_color = {
added.fg = base0B;
modified.fg = base0A;
@ -113,7 +109,6 @@
modified = " ";
removed = " ";
};
};
}
"branch"];
lualine_z = [
@ -122,7 +117,7 @@
"encoding"
];
};
theme = (lib.mapAttrs
options.theme = (lib.mapAttrs
(mode_name: mode_color: {
a = inverted;
b = inverted // { bg = mode_color; gui = "bold"; };
@ -148,11 +143,13 @@
};
};
};
};
# Show context on top if scrolled out
treesitter-context = {
enable = true;
settings.max_lines = 5;
};
web-devicons.enable = true; # TODO Check out plugins.mini.enable
};
};
};

View file

@ -79,7 +79,7 @@
# Or at least something to live_grep the curent word.
# Surrounding pairs
surround.enable = true; # Change surrounding pairs (e.g. brackets, quotes)
vim-surround.enable = true; # Change surrounding pairs (e.g. brackets, quotes)
undotree.enable = true; # Navigate edition history