blob: b9d5287922847102cc9f20b5dda762f152edea7c (
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
|
{ pkgs, lib, ... }:
with pkgs;
let
my-kakoune = kakoune.override {
plugins = with kakounePlugins; [
kak-ansi
(import ./kak-active-window.nix { inherit pkgs lib; })
];
};
kak-tree-sitter-unstable = import ./kak-tree-sitter.nix { inherit pkgs lib; };
kakoune-lsp-unstable = import ./kakoune-lsp.nix { inherit pkgs lib; };
kak-tmux = pkgs.writeShellScriptBin "kak-tmux" ''
if [ -t 0 ] && [ -z "$TMUX" ]; then
exec </dev/tty; exec <&1; ${tmux}/bin/tmux new "${my-kakoune}/bin/kak$(printf ' %q' "$@")"
else
exec "${my-kakoune}/bin/kak" "$@"
fi
'';
in
{
environment.systemPackages = [
my-kakoune
# kakoune-lsp
kakoune-lsp-unstable
kakoune-cr
kak-tree-sitter-unstable
kak-tmux
editorconfig-core-c
];
}
|