From 0876ec355eb16f5cda6c120d4334016449965c2f Mon Sep 17 00:00:00 2001 From: "Lennart J. Kurzweg (Nx2)" Date: Mon, 31 Mar 2025 00:23:44 +0200 Subject: [PATCH] better helix markup --- home-modules/helix.nix | 127 ++++++++++++++++++++--------------------- 1 file changed, 62 insertions(+), 65 deletions(-) diff --git a/home-modules/helix.nix b/home-modules/helix.nix index a3c5336..09873a4 100644 --- a/home-modules/helix.nix +++ b/home-modules/helix.nix @@ -303,8 +303,8 @@ base16 = with rice.color; { "attributes" = foreground; "comment" = { - "fg" = black.bright; - "modifiers" = [ "italic" ]; + fg = black.bright; + modifiers = [ "italic" ]; }; "constant" = accent.bright; "constant.character.escape" = special.bright; @@ -320,6 +320,7 @@ "hint" = tertiary.bright; "info" = foreground; "keyword" = special.base; + "keyword.modifiers" = [ "italic" ]; "label" = foreground; "namespace" = weird.bright; "operator" = foreground; @@ -332,131 +333,127 @@ "markup.heading" = accent.base; "markup.bold" = { - "fg" = tertiary.bright; - "modifiers" = [ "bold" ]; + fg = tertiary.bright; + modifiers = [ "bold" ]; }; "italic" = { - "fg" = secondary.bright; - "modifiers" = [ "italic" ]; + fg = secondary.bright; + modifiers = [ "italic" ]; }; "markup.linktext" = accent.base; "markup.linkurl" = { - "fg" = tertiary.dark; - "modifiers" = [ "underlined" ]; + fg = tertiary.dark; + modifiers = [ "underlined" ]; }; "markup.list" = accent.bright; "markup.quote" = weird.bright; "markup.raw" = special.bright; - "markup.strikethrough" = { - "modifiers" = [ "crossed_out" ]; - }; + "markup.strikethrough".modifiers = [ "crossed_out" ]; - "diagnostic.hint" = { - "underline" = { style = "curl"; }; - }; - "diagnostic.info" = { - "underline" = { style = "curl"; }; - }; - "diagnostic.warning" = { - "underline" = { style = "curl"; }; - }; - "diagnostic.error" = { - "underline" = { style = "curl"; }; - }; + "diagnostic.hint".underline.style = "curl"; + "diagnostic.info".underline.style = "curl"; + "diagnostic.warning".underline.style = "curl"; + "diagnostic.error".underline.style = "curl"; "ui.background" = { # general background of the editor window - # "bg" = background; + # bg = background; }; "ui.bufferline" = { # the top line ("tab"-line) - "fg" = accent.base; - "bg" = black.base; + fg = accent.base; + bg = black.base; }; "ui.bufferline.active" = { # the active "tab" - "fg" = background; - "bg" = accent.base; - "modifiers" = [ "bold" ]; + fg = background; + bg = accent.base; + modifiers = [ "bold" ]; }; "ui.cursor" = { # the cursor in Normal mode - "fg" = foreground; - "modifiers" = [ "reversed" ]; + fg = foreground; + modifiers = [ "reversed" ]; }; "ui.cursorline.primary" = { # the line on which the cursor is on - "bg" = black.base; + bg = black.base; }; "ui.cursor.match" = { # Matching bracket etc. - "bg" = green.dark; - "modifiers" = [ ]; + bg = green.dark; + modifiers = [ ]; }; "ui.gutter" = { - "bg" = black.base; + bg = black.base; }; "ui.help" = { - "fg" = green.base; - "bg" = black.base; + fg = green.base; + bg = black.base; }; "ui.linenr" = { - "fg" = white.dark; - "bg" = black.base; + fg = white.dark; + bg = black.base; }; "ui.linenr.selected" = { - "fg" = accent.bright; - "modifiers" = [ "bold" ]; + fg = accent.bright; + modifiers = [ "bold" ]; }; "ui.menu" = { - "fg" = accent.base; - "bg" = black.base; + fg = accent.base; + bg = black.base; }; "ui.menu.scroll" = { - "fg" = yellow.dark; - "bg" = background; + fg = yellow.dark; + bg = background; }; "ui.menu.selected" = { - "fg" = red.base; - "bg" = blue.dark; + fg = red.base; + bg = blue.dark; }; "ui.popup" = { - "bg" = black.base; + bg = black.base; }; "ui.selection" = { - "bg" = white.dark; + bg = white.dark; }; "ui.selection.primary" = { - "bg" = black.bright; + bg = black.bright; }; "ui.statusline" = { - "fg" = blue.bright; - "bg" = black.base; + fg = blue.bright; + bg = black.base; }; "ui.statusline.inactive" = { - "fg" = red.bright; - "bg" = red.dark; + fg = red.bright; + bg = red.dark; }; "ui.statusline.insert" = { - "fg" = green.bright; - "bg" = green.dark; + fg = green.bright; + bg = green.dark; }; "ui.statusline.normal" = { - "fg" = yellow.bright; - "bg" = yellow.dark; + fg = yellow.bright; + bg = yellow.dark; }; "ui.statusline.select" = { - "fg" = cyan.bright; - "bg" = cyan.dark; + fg = cyan.bright; + bg = cyan.dark; }; "ui.text" = foreground; "ui.text.focus" = accent.base; "ui.virtual.indent-guide" = { - "fg" = black.bright; + fg = black.bright; }; "ui.virtual.inlay-hint" = { - "fg" = weird.dark; - "bg" = weird.base; + fg = weird.dark; + bg = weird.base; }; "ui.virtual.ruler" = { - "bg" = background; + bg = background; + }; + "ui.virtual.jump-label" = { + fg = special.base; + underline = { + style = "dotted"; + }; }; "ui.window" = { - "bg" = black.base; + bg = black.base; }; }; };