From 2de926b0e4e9e5b9a3d7413a5061b0c6e00869f6 Mon Sep 17 00:00:00 2001 From: Marco Thomas Date: Thu, 28 Sep 2023 13:25:22 +0000 Subject: [PATCH] helix: add configuration --- .gitignore | 1 + files/helix/.config/helix/config.toml | 19 ++++ files/helix/.config/helix/languages.toml | 6 ++ .../.config/helix/themes/everforest.toml | 88 +++++++++++++++++++ 4 files changed, 114 insertions(+) create mode 100644 files/helix/.config/helix/config.toml create mode 100644 files/helix/.config/helix/languages.toml create mode 100644 files/helix/.config/helix/themes/everforest.toml diff --git a/.gitignore b/.gitignore index 6e2e0fb..6a8bb76 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ __init__.py /fonts/.uuid plugin/ files/lazygit/.config/lazygit/state.yml +runtime/ diff --git a/files/helix/.config/helix/config.toml b/files/helix/.config/helix/config.toml new file mode 100644 index 0000000..2979e26 --- /dev/null +++ b/files/helix/.config/helix/config.toml @@ -0,0 +1,19 @@ +# Dont forget to link the runtime/ directory into $HOME/.config/helix/runtime + +theme = "everforest_light" + +[editor] +line-number = "relative" +true-color = true +idle-timeout = 100 + +[editor.cursor-shape] +insert = "bar" + +[editor.whitespace.render] +# space = "all" +tab = "all" + +[keys.normal] +"_" = ["extend_line_up", "extend_to_line_bounds"] +"+" = ["extend_line_down", "extend_to_line_bounds"] diff --git a/files/helix/.config/helix/languages.toml b/files/helix/.config/helix/languages.toml new file mode 100644 index 0000000..bc99168 --- /dev/null +++ b/files/helix/.config/helix/languages.toml @@ -0,0 +1,6 @@ +[[language]] +name = "bibtex" +auto-format = false + +[language-server.typst-lsp.config] +exportPdf = "never" diff --git a/files/helix/.config/helix/themes/everforest.toml b/files/helix/.config/helix/themes/everforest.toml new file mode 100644 index 0000000..d168aa6 --- /dev/null +++ b/files/helix/.config/helix/themes/everforest.toml @@ -0,0 +1,88 @@ +"type" = "yellow" +"constant" = "purple" +"constant.numeric" = "purple" +"constant.character.escape" = "orange" +"string" = "green" +"string.regexp" = "blue" +"comment" = "grey0" +"variable" = "fg" +"variable.builtin" = "blue" +"variable.parameter" = "fg" +"variable.other.member" = "fg" +"label" = "aqua" +"punctuation" = "grey2" +"punctuation.delimiter" = "grey2" +"punctuation.bracket" = "fg" +"keyword" = "red" +"keyword.directive" = "aqua" +"operator" = "orange" +"function" = "green" +"function.builtin" = "blue" +"function.macro" = "aqua" +"tag" = "yellow" +"namespace" = "aqua" +"attribute" = "aqua" +"constructor" = "yellow" +"module" = "blue" +"special" = "orange" + +"markup.heading.marker" = "grey2" +"markup.heading.1" = { fg = "red", modifiers = ["bold"] } +"markup.heading.2" = { fg = "orange", modifiers = ["bold"] } +"markup.heading.3" = { fg = "yellow", modifiers = ["bold"] } +"markup.heading.4" = { fg = "green", modifiers = ["bold"] } +"markup.heading.5" = { fg = "blue", modifiers = ["bold"] } +"markup.heading.6" = { fg = "fg", modifiers = ["bold"] } +"markup.list" = "red" +"markup.bold" = { modifiers = ["bold"] } +"markup.italic" = { modifiers = ["italic"] } +"markup.link.url" = { fg = "blue", modifiers = ["underlined"] } +"markup.link.text" = "purple" +"markup.quote" = "grey2" +"markup.raw" = "green" + +"diff.plus" = "green" +"diff.delta" = "orange" +"diff.minus" = "red" + +"ui.background" = { bg = "bg0" } +"ui.background.separator" = "grey0" +"ui.cursor" = { fg = "bg0", bg = "fg" } +"ui.cursor.match" = { fg = "orange", bg = "bg_yellow" } +"ui.cursor.insert" = { fg = "bg0", bg = "grey1" } +"ui.cursor.select" = { fg = "bg0", bg = "blue" } +"ui.cursorline.primary" = { bg = "bg1" } +"ui.cursorline.secondary" = { bg = "bg1" } +"ui.selection" = { bg = "bg3" } +"ui.linenr" = "grey0" +"ui.linenr.selected" = "fg" +"ui.statusline" = { fg = "grey2", bg = "bg3" } +"ui.statusline.inactive" = { fg = "grey0", bg = "bg1" } +"ui.statusline.normal" = { fg = "bg0", bg = "grey2", modifiers = ["bold"] } +"ui.statusline.insert" = { fg = "bg0", bg = "yellow", modifiers = ["bold"] } +"ui.statusline.select" = { fg = "bg0", bg = "blue", modifiers = ["bold"] } +"ui.bufferline" = { fg = "grey0", bg = "bg1" } +"ui.bufferline.active" = { fg = "fg", bg = "bg3", modifiers = ["bold"] } +"ui.popup" = { fg = "grey2", bg = "bg2" } +"ui.window" = { fg = "grey0", bg = "bg0" } +"ui.help" = { fg = "fg", bg = "bg2" } +"ui.text" = "fg" +"ui.text.focus" = "fg" +"ui.menu" = { fg = "fg", bg = "bg3" } +"ui.menu.selected" = { fg = "bg0", bg = "green" } +"ui.virtual.whitespace" = { fg = "bg4" } +"ui.virtual.indent-guide" = { fg = "bg4" } +"ui.virtual.ruler" = { bg = "bg3" } + +"hint" = "blue" +"info" = "aqua" +"warning" = "yellow" +"error" = "red" +"diagnostic" = { underline = { style = "curl" } } +"diagnostic.hint" = { underline = { color = "blue", style = "dotted" } } +"diagnostic.info" = { underline = { color = "aqua", style = "dotted" } } +"diagnostic.warning" = { underline = { color = "yellow", style = "curl" } } +"diagnostic.error" = { underline = { color = "red", style = "curl" } } + +[palette] +