From a19f3a67ae3697130885bb0553aa7e54b3c4ada0 Mon Sep 17 00:00:00 2001 From: Rosa Date: Thu, 7 May 2026 15:28:18 -0400 Subject: we use tabs now --- modules/user/editors/kakoune/default.nix | 111 ++++++++++++++++--------------- 1 file changed, 57 insertions(+), 54 deletions(-) (limited to 'modules/user') diff --git a/modules/user/editors/kakoune/default.nix b/modules/user/editors/kakoune/default.nix index ab1c789..47d0569 100644 --- a/modules/user/editors/kakoune/default.nix +++ b/modules/user/editors/kakoune/default.nix @@ -1,63 +1,66 @@ { - config, - lib, - options, - pkgs, - ... + config, + lib, + options, + pkgs, + ... }: { - config.programs.kakoune = lib.mkIf config.editors.kakoune.enable { - enable = true; - colorSchemePackage = pkgs.kakounePlugins.kakoune-catppuccin; - config = { - colorScheme = "catppuccin_mocha"; - hooks = [ - { - commands = "set window indentwidth 2"; - group = "set-indentwidth"; - name = "WinSetOption"; - option = "filetype=(nix)"; - } - { - commands = "lsp-enable-window"; - name = "WinSetOption"; - option = "filetype=(css|html|java|zig)"; - } - ]; + config.programs.kakoune = lib.mkIf config.editors.kakoune.enable { + enable = true; + colorSchemePackage = pkgs.kakounePlugins.kakoune-catppuccin; + config = { + alignWithTabs = true; + colorScheme = "catppuccin_mocha"; + hooks = [ + { + commands = "set window tabstop 2"; + group = "set-indentwidth"; + name = "WinSetOption"; + option = "filetype=(nix)"; + } + { + commands = "lsp-enable-window"; + name = "WinSetOption"; + option = "filetype=(css|html|java|zig)"; + } + ]; - keyMappings = [ - { - docstring = "Open a new window"; - effect = ":new"; - key = ""; - mode = "normal"; - } - { - docstring = "Open a new file"; - effect = ":e %sh{${pkgs.fd}/bin/fd -tf | fuzzel --prompt=\"open: \" --dmenu --minimal-lines --width=60}"; - key = ""; - mode = "normal"; - } - ]; + indentWidth = 0; + keyMappings = [ + { + docstring = "Open a new window"; + effect = ":new"; + key = ""; + mode = "normal"; + } + { + docstring = "Open a new file"; + effect = ":e %sh{${pkgs.fd}/bin/fd -tf | fuzzel --prompt=\"open: \" --dmenu --minimal-lines --width=60}"; + key = ""; + mode = "normal"; + } + ]; - numberLines = { - enable = true; - highlightCursor = true; - relative = true; - }; + numberLines = { + enable = true; + highlightCursor = true; + relative = true; + }; - tabStop = 4; - ui.assistant = "cat"; - }; + showWhitespace.enable = true; + tabStop = 4; + ui.assistant = "cat"; + }; - defaultEditor = true; - extraConfig = builtins.readFile ./kakrc; - plugins = with pkgs.kakounePlugins; [ - auto-pairs-kak - kakoune-extra-filetypes - kakoune-lsp - ]; - }; + defaultEditor = true; + extraConfig = builtins.readFile ./kakrc; + plugins = with pkgs.kakounePlugins; [ + auto-pairs-kak + kakoune-extra-filetypes + kakoune-lsp + ]; + }; - options.editors.kakoune.enable = lib.mkEnableOption "rosa's kakoune setup"; + options.editors.kakoune.enable = lib.mkEnableOption "rosa's kakoune setup"; } -- cgit v1.3.1