From dc308d0fcca60b9eaeef0dff46ca1637c716f549 Mon Sep 17 00:00:00 2001 From: Anton Bilous Date: Sat, 10 Jan 2026 17:58:52 +0200 Subject: [PATCH] helix with local build --- .config/fish/conf.d/env.fish | 2 +- .config/helix/languages.toml | 22 ++++++++++++++++------ .config/helix/runtime | 1 + 3 files changed, 18 insertions(+), 7 deletions(-) create mode 120000 .config/helix/runtime diff --git a/.config/fish/conf.d/env.fish b/.config/fish/conf.d/env.fish index 850362b..8ea9b37 100644 --- a/.config/fish/conf.d/env.fish +++ b/.config/fish/conf.d/env.fish @@ -34,7 +34,7 @@ set -gx SCREENSHOT_DIR $XDG_PICTURES_DIR/screen set -gx SCREENRECORD_DIR $XDG_VIDEOS_DIR/screen # Find an editor -for e in helix nvim vim vi nano +for e in hx helix nvim vim vi nano type -q $e; or continue set -gx EDITOR $e break diff --git a/.config/helix/languages.toml b/.config/helix/languages.toml index ffa08aa..ee2fca3 100644 --- a/.config/helix/languages.toml +++ b/.config/helix/languages.toml @@ -8,6 +8,16 @@ auto-format = false name = "tsx" auto-format = true +[[language]] +name = "html" +indent = { tab-width = 4, unit = " " } +auto-format = false + +# [[language]] +# name = "tera" +# injection-regex = "html" +# file-types = ["html"] + [[language]] name = "markdown" [language.auto-pairs] @@ -44,11 +54,11 @@ include_md_extension_md_link = true # [File](file.md) or [File](file) [[language]] name = "toml" auto-format = true - -# TODO: still aligns -[language-server.taplo.config] -alignComments = false -align_comments = false +formatter = { command = "taplo", args = [ + "format", + # "-oalign_comments=false", + "-", +] } # [language-server.yaml-language-server.config.yaml] @@ -79,7 +89,7 @@ exportPdf = "never" # onSave, default: never [[language]] name = "env" -file-types = ["conf"] +file-types = ["conf", { glob = ".envrc" }] [[language]] name = "devicetree" diff --git a/.config/helix/runtime b/.config/helix/runtime new file mode 120000 index 0000000..1ced1df --- /dev/null +++ b/.config/helix/runtime @@ -0,0 +1 @@ +/usr/lib/helix/runtime \ No newline at end of file