blob: 7a9f1525c8d9d265566c8f460ed7a0979730acd5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
{
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)";
}
];
numberLines = {
enable = true;
highlightCursor = true;
relative = true;
};
tabStop = 4;
ui.assistant = "cat";
};
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";
}
|