From fee2014444c77b2a53502e7b74e7c79843dd19a4 Mon Sep 17 00:00:00 2001 From: David Runge Date: Thu, 4 May 2023 00:16:04 +0200 Subject: Update helix configuration for 23.03. --- .config/helix/config.toml | 7 ++++++- .config/helix/languages.toml | 10 +++++++++- 2 files changed, 15 insertions(+), 2 deletions(-) (limited to '.config/helix') diff --git a/.config/helix/config.toml b/.config/helix/config.toml index 015a3de..b0d0c58 100644 --- a/.config/helix/config.toml +++ b/.config/helix/config.toml @@ -1,14 +1,19 @@ theme = "onedark" + [editor] true-color = true line-number = "relative" shell = ["zsh", "-c"] +text-width = 120 [editor.cursor-shape] insert = "bar" +[editor.soft-wrap] +enable = true + [editor.statusline] -left = ["mode", "spinner"] +left = ["version-control", "mode", "spinner"] center = ["file-name"] right = ["diagnostics", "selections", "position", "file-encoding", "file-line-ending", "file-type"] separator = "│" diff --git a/.config/helix/languages.toml b/.config/helix/languages.toml index eeeedba..8b5416c 100644 --- a/.config/helix/languages.toml +++ b/.config/helix/languages.toml @@ -2,13 +2,21 @@ name = "rust" auto-format = true +[[language]] +name = "email" +scope = "source.text" +auto-format = true +text-width = 80 +file-types = ["mutt"] +indent = { tab-width = 2, unit = " " } +roots = [] + [[language]] name = "python" scope = "source.python" auto-format = true shebangs = ["python", "python3"] roots = ["pyproject.toml", "setup.py", "setup.cfg", "SConstruct"] -max-line-length = 120 language-server = { command = "pylsp" } [language.config.pylsp.plugins.flake8] -- cgit v1.2.3-70-g09d2