From 9ca1e718c2287b863815b152d15b4fc3f5b13009 Mon Sep 17 00:00:00 2001 From: Daniel Patterson Date: Thu, 20 Jan 2022 02:08:54 +0000 Subject: [PATCH] Update helix config --- user/daniel/home.nix | 5 ++- user/progs/helix/config.toml | 4 +++ user/progs/helix/themes/dracula.toml | 54 ++++++++++++++++++++++++++++ 3 files changed, 62 insertions(+), 1 deletion(-) create mode 100644 user/progs/helix/themes/dracula.toml diff --git a/user/daniel/home.nix b/user/daniel/home.nix index 539755d..f3d0f16 100644 --- a/user/daniel/home.nix +++ b/user/daniel/home.nix @@ -27,7 +27,10 @@ file = { ".icons/default".source = "${pkgs.capitaine-cursors}/share/icons/capitaine-cursors"; - ".config/helix/config.toml".source = ../progs/helix/config.toml; + ".config/helix" = { + source = ../progs/helix; + recursive = true; + }; "bin/aupdate" = { source = ../../scripts/aupdate; diff --git a/user/progs/helix/config.toml b/user/progs/helix/config.toml index 9d1a0ba..eb30143 100644 --- a/user/progs/helix/config.toml +++ b/user/progs/helix/config.toml @@ -1 +1,5 @@ theme = "dracula" + + +[keys.normal] +G = "goto_last_line" diff --git a/user/progs/helix/themes/dracula.toml b/user/progs/helix/themes/dracula.toml new file mode 100644 index 0000000..c830d0e --- /dev/null +++ b/user/progs/helix/themes/dracula.toml @@ -0,0 +1,54 @@ +# Author : Sebastian Zivota +"comment" = { fg = "comment" } +"constant" = { fg = "purple" } +"constant.character.escape" = { fg = "pink" } +"function" = { fg = "green" } +"keyword" = { fg = "pink" } +"operator" = { fg = "pink" } +"punctuation" = { fg = "foreground" } +"string" = { fg = "yellow" } +"string.regexp" = { fg = "red" } +"tag" = { fg = "pink" } +"type" = { fg = "cyan", modifiers = ["italic"] } +"type.enum.variant" = { fg = "foreground", modifiers = ["italic"] } +"variable" = { fg = "foreground" } +"variable.builtin" = { fg = "cyan", modifiers = ["italic"] } +"variable.parameter" = { fg ="orange", modifiers = ["italic"] } + +"diff.plus" = { fg = "green" } +"diff.delta" = { fg = "orange" } +"diff.minus" = { fg = "red" } + +"ui.background" = { fg = "foreground", bg = "background" } +"ui.cursor" = { fg = "background", bg = "orange", modifiers = ["dim"] } +"ui.cursor.match" = { fg = "green", modifiers = ["underlined"] } +"ui.cursor.primary" = { fg = "background", bg = "cyan", modifier = ["dim"] } +"ui.help" = { fg = "foreground", bg = "background_dark" } +"ui.linenr" = { fg = "comment" } +"ui.linenr.selected" = { fg = "foreground" } +"ui.menu" = { fg = "foreground", bg = "background_dark" } +"ui.menu.selected" = { fg = "cyan", bg = "background_dark" } +"ui.popup" = { fg = "foreground", bg = "background_dark" } +"ui.selection" = { fg = "background", bg = "purple", modifiers = ["dim"] } +"ui.selection.primary" = { fg = "background", bg = "pink" } +"ui.statusline" = { fg = "foreground", bg = "background_dark" } +"ui.statusline.inactive" = { fg = "comment", bg = "background_dark" } +"ui.text" = { fg = "foreground" } +"ui.text.focus" = { fg = "cyan" } +"ui.window" = { fg = "foreground" } + +"error" = { fg = "red" } +"warning" = { fg = "cyan" } + +[palette] +background = "#282a36" +background_dark = "#21222c" +foreground = "#f8f8f2" +comment = "#6272a4" +red = "#ff5555" +orange = "#ffb86c" +yellow = "#f1fa8c" +green = "#50fa7b" +purple = "#bd93f9" +cyan = "#8be9fd" +pink = "#ff79c6"