Nix fmt rfc style (more or less)

This commit is contained in:
Filippo Berto 2024-08-13 12:22:23 +02:00
parent e7496c447a
commit 515f098644
No known key found for this signature in database
GPG key ID: FE98AE5EC52B1056
146 changed files with 2607 additions and 906 deletions

View file

@ -1,7 +1,13 @@
{ pkgs, ... }: {
{ pkgs, ... }:
{
home = {
sessionVariables = { EDITOR = "hx"; VISUAL = "hx"; };
shellAliases = { x = "hx"; };
sessionVariables = {
EDITOR = "hx";
VISUAL = "hx";
};
shellAliases = {
x = "hx";
};
packages = builtins.attrValues {
inherit (pkgs) nil; # Nix language server
# inherit desktopItem;
@ -10,10 +16,12 @@
programs.helix = {
enable = true;
package = pkgs.unstable_pkgs.helix;
languages.language = [{
name = "nix";
auto-format = true;
}];
languages.language = [
{
name = "nix";
auto-format = true;
}
];
languages.language-server = {
nil.config.nil = {
formatting.command = [ "nixpkgs-fmt" ];
@ -82,24 +90,56 @@
{
base16 = {
"ui.menu" = transparent;
"ui.menu.selected" = { modifiers = [ "reversed" ]; };
"ui.linenr" = { fg = gray; bg = dark-gray; };
"ui.popup" = { modifiers = [ "reversed" ]; };
"ui.linenr.selected" = { fg = white; bg = black; modifiers = [ "bold" ]; };
"ui.selection" = { fg = black; bg = blue; };
"ui.selection.primary" = { modifiers = [ "reversed" ]; };
"comment" = { fg = gray; };
"ui.statusline" = { fg = white; bg = dark-gray; };
"ui.statusline.inactive" = { fg = dark-gray; bg = white; };
"ui.help" = { fg = dark-gray; bg = white; };
"ui.cursor" = { modifiers = [ "reversed" ]; };
"ui.menu.selected" = {
modifiers = [ "reversed" ];
};
"ui.linenr" = {
fg = gray;
bg = dark-gray;
};
"ui.popup" = {
modifiers = [ "reversed" ];
};
"ui.linenr.selected" = {
fg = white;
bg = black;
modifiers = [ "bold" ];
};
"ui.selection" = {
fg = black;
bg = blue;
};
"ui.selection.primary" = {
modifiers = [ "reversed" ];
};
"comment" = {
fg = gray;
};
"ui.statusline" = {
fg = white;
bg = dark-gray;
};
"ui.statusline.inactive" = {
fg = dark-gray;
bg = white;
};
"ui.help" = {
fg = dark-gray;
bg = white;
};
"ui.cursor" = {
modifiers = [ "reversed" ];
};
"variable" = red;
"variable.builtin" = orange;
"constant.numeric" = orange;
"constant" = orange;
"attributes" = yellow;
"type" = yellow;
"ui.cursor.match" = { fg = yellow; modifiers = [ "underlined" ]; };
"ui.cursor.match" = {
fg = yellow;
modifiers = [ "underlined" ];
};
"string" = green;
"variable.other.member" = red;
"constant.character.escape" = cyan;
@ -112,8 +152,12 @@
"diff.plus" = green;
"diff.delta" = yellow;
"diff.minus" = red;
"diagnostic" = { modifiers = [ "underlined" ]; };
"ui.gutter" = { bg = black; };
"diagnostic" = {
modifiers = [ "underlined" ];
};
"ui.gutter" = {
bg = black;
};
"info" = blue;
"hint" = dark-gray;
"debug" = dark-gray;