diff options
| author | Rosa <rosaontheweb@proton.me> | 2026-01-10 17:59:55 -0500 |
|---|---|---|
| committer | Rosa <rosaontheweb@proton.me> | 2026-01-10 17:59:55 -0500 |
| commit | 5570be9c9c64e0ba2474d73c2b6b23508b916fd6 (patch) | |
| tree | 53e2f7939b668a50d8f51f857a8659989de85c2b /user/kakoune/default.nix | |
| parent | 488bd4b5c08d6fe9c44b0fa5cd3750265c2be482 (diff) | |
custom function for system creation
Diffstat (limited to 'user/kakoune/default.nix')
| -rw-r--r-- | user/kakoune/default.nix | 72 |
1 files changed, 0 insertions, 72 deletions
diff --git a/user/kakoune/default.nix b/user/kakoune/default.nix deleted file mode 100644 index 2a76f7a..0000000 --- a/user/kakoune/default.nix +++ /dev/null @@ -1,72 +0,0 @@ -{ config, pkgs, ... }: -{ - programs.kakoune = { - enable = true; - colorSchemePackage = pkgs.kakounePlugins.kakoune-catppuccin; - config = { - colorScheme = "catppuccin_mocha"; - hooks = [ - { - commands = "set window indentwidth 2"; - group = "indentwidth"; - name = "WinSetOption"; - option = "filetype=(nix)"; - } - { - commands = "lsp-enable-window"; - name = "WinSetOption"; - option = "filetype=(javascript|kotlin|qml|typescript|zig)"; - } - { - commands = '' - set-option buffer lsp_servers %{ - [kotlin-language-server] - root_globs = ["build.gradle.kts"] - } - ''; - name = "BufSetOption"; - option = "filetype=kotlin"; - } - { - commands = '' - set-option buffer lsp_servers %{ - [qmlls] - root_globs = ["shell.qml"] - } - ''; - name = "BufSetOption"; - option = "filetype=qml"; - } - ]; - - keyMappings = [ - { - docstring = "Opens a new editor window"; - effect = ":new<ret>"; - key = "<c-w>"; - mode = "normal"; - } - ]; - - numberLines = { - enable = true; - highlightCursor = true; - }; - - ui = { - assistant = "cat"; - setTitle = true; - }; - }; - - defaultEditor = true; - extraConfig = builtins.readFile ./kakrc; - plugins = with pkgs.kakounePlugins; [ - auto-pairs-kak - kakoune-extra-filetypes - kakoune-lsp - ]; - }; - - xdg.configFile."kak/qml.kak".source = ./qml.kak; -} |
