From 5497fa685466c73cbcffd3e77056752a8d818e3e Mon Sep 17 00:00:00 2001 From: Rosa Date: Tue, 26 May 2026 14:28:53 -0400 Subject: syncing my things --- modules/user/editors/kakoune/default.nix | 134 +++++++++++++++---------------- 1 file changed, 67 insertions(+), 67 deletions(-) (limited to 'modules/user/editors') diff --git a/modules/user/editors/kakoune/default.nix b/modules/user/editors/kakoune/default.nix index fa2132b..a728d7d 100644 --- a/modules/user/editors/kakoune/default.nix +++ b/modules/user/editors/kakoune/default.nix @@ -1,76 +1,76 @@ { - 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 = { - 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)"; - } - { - commands = "set window filetype json"; - name = "WinCreate"; - option = ".*\.mcmeta"; - } - ]; + 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)"; + } + { + commands = "set window filetype json"; + name = "WinCreate"; + option = ".*\.mcmeta"; + } + ]; - 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"; - } - { - docstring = "Comment the selected line(s)"; - effect = ":comment-line"; - 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"; + } + { + docstring = "Comment the selected line(s)"; + effect = ":comment-line"; + key = ""; + mode = "normal"; + } + ]; - numberLines = { - enable = true; - highlightCursor = true; - relative = true; - }; + numberLines = { + enable = true; + highlightCursor = true; + relative = true; + }; - tabStop = 4; - ui.assistant = "cat"; - }; + 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