2019-12-15 10:03:57 +03:00
|
|
|
{ pkgs, ... }:
|
|
|
|
{
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
cquery
|
|
|
|
kak-lsp
|
2019-12-16 08:30:25 +03:00
|
|
|
kakoune-config
|
2019-12-15 10:03:57 +03:00
|
|
|
kakoune-unwrapped
|
|
|
|
nixpkgs-fmt
|
|
|
|
python3Packages.python-language-server
|
|
|
|
rustup
|
|
|
|
];
|
|
|
|
|
|
|
|
environment.etc = {
|
|
|
|
"xdg/kak/kakrc".source = ./kakrc;
|
|
|
|
"xdg/kak/autoload/plugins".source = ./plugins;
|
|
|
|
"xdg/kak/autoload/lint".source = ./lint;
|
|
|
|
"xdg/kak/autoload/lsp".source = ./lsp;
|
|
|
|
"xdg/kak/autoload/default".source = "${pkgs.kakoune-unwrapped}/share/kak/rc";
|
|
|
|
};
|
|
|
|
|
|
|
|
nixpkgs.overlays = let
|
|
|
|
kak = self: super: {
|
|
|
|
kakoune = super.kakoune.override {
|
|
|
|
configure.plugins = with super.kakounePlugins; [
|
|
|
|
(kak-fzf.override { fzf = super.skim; })
|
|
|
|
kak-auto-pairs
|
|
|
|
kak-buffers
|
|
|
|
kak-powerline
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2019-12-18 04:00:31 +03:00
|
|
|
kakoune-config = super.writeShellScriptBin "k" ''
|
2019-12-16 08:30:25 +03:00
|
|
|
XDG_CONFIG_HOME=/etc/xdg ${self.kakoune}/bin/kak "$@"
|
|
|
|
'';
|
|
|
|
|
2019-12-15 10:03:57 +03:00
|
|
|
kakoune-unwrapped = super.kakoune-unwrapped.overrideAttrs (
|
|
|
|
o: rec {
|
|
|
|
version = "2019.12.10";
|
|
|
|
src = super.fetchFromGitHub {
|
|
|
|
repo = "kakoune";
|
|
|
|
owner = "mawww";
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-TnRQ73bIQGavXNp+wrKtYHgGem+R6JDWt333z2izYzE=";
|
|
|
|
};
|
|
|
|
}
|
|
|
|
);
|
|
|
|
};
|
|
|
|
in
|
|
|
|
[ kak ];
|
|
|
|
}
|