From 5521d3f47910ee60186aefde15ee896967fc056b Mon Sep 17 00:00:00 2001 From: Schrottkatze Date: Mon, 6 Jan 2025 08:22:31 +0100 Subject: [PATCH] reconfiguring helix a bit :3 --- modules/shell/helix.nix | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/modules/shell/helix.nix b/modules/shell/helix.nix index 1f8a2f2..53ea07e 100644 --- a/modules/shell/helix.nix +++ b/modules/shell/helix.nix @@ -31,12 +31,18 @@ bufferline = "multiple"; color-modes = true; cursorline = true; - auto-save = true; + auto-save = { + focus-lost = true; + after-delay.enable = true; + after-delay.timeout = 10000; + }; auto-format = true; end-of-line-diagnostics = "hint"; + # slightly optimized based on my layout + jump-label-alphabet = "jfkdaslghwenuiopbcmyzqrtvx"; + clipboard-provider = "wayland"; inline-diagnostics = { cursor-line = "hint"; - other-lines = "error"; }; lsp = { display-messages = true; @@ -65,9 +71,14 @@ "file-type" ]; idle-timeout = 50; + completion-timeout = 100; indent-guides = { render = true; character = "│"; + skip-levels = 2; + }; + soft-wrap = { + enable = true; }; whitespace = { render = { @@ -85,6 +96,10 @@ keys = { normal = { space."=" = ":fmt"; + + # smart tab++ + tab = "move_parent_node_end"; + S-tab = "move_parent_node_start"; }; insert = { up = "no_op"; @@ -95,6 +110,14 @@ pagedown = "no_op"; home = "no_op"; end = "no_op"; + + # smart tab ++ + S-tab = "move_parent_node_start"; + }; + select = { + # smart tab++ + tab = "extend_parent_node_end"; + S-tab = "extend_parent_node_start"; }; }; };