From a34b917aec59b9699e76720f5e607e23815f8a91 Mon Sep 17 00:00:00 2001 From: Francesco Date: Fri, 10 Oct 2025 15:39:14 +0200 Subject: [PATCH] refactor(helix): update config --- helix/config.toml | 21 ++++++++++++++++++++- helix/languages.toml | 4 ++++ 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/helix/config.toml b/helix/config.toml index d643ef2..d61f4e6 100644 --- a/helix/config.toml +++ b/helix/config.toml @@ -4,6 +4,11 @@ theme = "focus_nova" line-number = "relative" cursorline = true color-modes = true +auto-pairs = true +scrolloff = 3 +rulers = [80, 120] +idle-timeout = 200 +completion-trigger-len = 1 [editor.cursor-shape] insert = "bar" @@ -12,12 +17,26 @@ select = "underline" [editor.indent-guides] render = true +character = "│" +skip-levels = 1 + +[editor.statusline] +left = ["mode", "spinner", "file-name"] +center = ["diagnostics"] +right = ["file-type", "position"] + +[editor.lsp] +display-messages = true +auto-signature-help = true +display-inlay-hints = true [keys.normal] C-right = "move_next_word_start" C-left = "move_prev_word_end" +C-s = ":w" +C-q = ":q" [keys.insert] C-right = "move_next_word_start" C-left = "move_prev_word_end" - +C-s = ":w" diff --git a/helix/languages.toml b/helix/languages.toml index 573c456..d740c23 100644 --- a/helix/languages.toml +++ b/helix/languages.toml @@ -1,2 +1,6 @@ +[[language]] +name = "c" +indent = { tab-width = 4, unit = "\t" } + [language-server.clangd] args = ["--header-insertion=never"]