diff options
| author | Rosa <rosaontheweb@proton.me> | 2026-05-07 15:28:18 -0400 |
|---|---|---|
| committer | Rosa <rosaontheweb@proton.me> | 2026-05-07 15:28:18 -0400 |
| commit | a19f3a67ae3697130885bb0553aa7e54b3c4ada0 (patch) | |
| tree | 994f8726101847639118b2fd0952b8ea6666c63c /modules/user | |
| parent | 18913770b04fd6932cecba88e83b42a0a6b06ca5 (diff) | |
we use tabs now
Diffstat (limited to 'modules/user')
| -rw-r--r-- | modules/user/editors/kakoune/default.nix | 111 |
1 files changed, 57 insertions, 54 deletions
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<ret>"; - key = "<c-w>"; - mode = "normal"; - } - { - docstring = "Open a new file"; - effect = ":e %sh{${pkgs.fd}/bin/fd -tf | fuzzel --prompt=\"open: \" --dmenu --minimal-lines --width=60}<ret>"; - key = "<c-o>"; - mode = "normal"; - } - ]; + indentWidth = 0; + keyMappings = [ + { + docstring = "Open a new window"; + effect = ":new<ret>"; + key = "<c-w>"; + mode = "normal"; + } + { + docstring = "Open a new file"; + effect = ":e %sh{${pkgs.fd}/bin/fd -tf | fuzzel --prompt=\"open: \" --dmenu --minimal-lines --width=60}<ret>"; + key = "<c-o>"; + 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"; } |
