diff options
Diffstat (limited to 'modules/user/editors/kakoune/default.nix')
| -rw-r--r-- | modules/user/editors/kakoune/default.nix | 134 |
1 files changed, 67 insertions, 67 deletions
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<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"; - } - { - docstring = "Comment the selected line(s)"; - effect = ":comment-line<ret>"; - key = "<c-a-c>"; - 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"; + } + { + docstring = "Comment the selected line(s)"; + effect = ":comment-line<ret>"; + key = "<c-a-c>"; + 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"; } |
