From fa1482dcfcdc5446ad2c29bfec50ae05c5b888d8 Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Tue, 18 Mar 2025 21:47:40 -0400 Subject: [PATCH] some basic zellij and helix configs --- .../modules/nmasur/presets/programs/helix.nix | 27 ++++++-- .../nmasur/presets/programs/zellij.nix | 63 +++++++++++++++++++ 2 files changed, 86 insertions(+), 4 deletions(-) diff --git a/platforms/home-manager/modules/nmasur/presets/programs/helix.nix b/platforms/home-manager/modules/nmasur/presets/programs/helix.nix index c6540a2..25e4008 100644 --- a/platforms/home-manager/modules/nmasur/presets/programs/helix.nix +++ b/platforms/home-manager/modules/nmasur/presets/programs/helix.nix @@ -41,10 +41,29 @@ in settings = { theme = "base16"; - editor.cursor-shape = { - insert = "bar"; - normal = "block"; - select = "underline"; + editor = { + # Change cursors depending on the mode + cursor-shape = { + insert = "bar"; + normal = "block"; + select = "underline"; + }; + + # View line numbers relative to the current cursors + line-number = "relative"; + + # Show whitespace visible to the user + # Waiting for trailing whitespace option ideally + whitespace = { + render = { + # space = "all"; + tab = "all"; + }; + characters = { + # space = "·"; + tab = "→"; + }; + }; }; }; diff --git a/platforms/home-manager/modules/nmasur/presets/programs/zellij.nix b/platforms/home-manager/modules/nmasur/presets/programs/zellij.nix index c05cfee..1bd20ac 100644 --- a/platforms/home-manager/modules/nmasur/presets/programs/zellij.nix +++ b/platforms/home-manager/modules/nmasur/presets/programs/zellij.nix @@ -22,6 +22,69 @@ in enableZshIntegration = true; settings = { + # Remove border + pane_frames = false; + keybinds = { + # _props = { + # clear-defaults = true; + # }; + unbind = { + _args = [ + "Ctrl p" + "Ctrl n" + "Ctrl o" + "Ctrl s" + ]; + }; + normal = { + "bind \"Alt l\"" = { + SwitchToMode = { + _args = [ "locked" ]; + }; + }; + "bind \"Alt p\"" = { + SwitchToMode = { + _args = [ "pane" ]; + }; + }; + "bind \"Alt t\"" = { + SwitchToMode = { + _args = [ "tab" ]; + }; + }; + "bind \"Alt r\"" = { + SwitchToMode = { + _args = [ "resize" ]; + }; + }; + "bind \"Alt m\"" = { + SwitchToMode = { + _args = [ "move" ]; + }; + }; + "bind \"Alt k\"" = { + SwitchToMode = { + _args = [ "search" ]; + }; + }; + "bind \"Alt o\"" = { + SwitchToMode = { + _args = [ "session" ]; + }; + }; + "bind \"Alt q\"" = { + "Quit" = { }; + }; + }; + locked = { + "bind \"Alt l\"" = { + SwitchToMode = { + _args = [ "Normal" ]; + }; + }; + }; + + }; theme = "custom"; themes.custom = { fg = "${config.theme.colors.base05}";