config/modules/kak/kakoune.nix

66 lines
890 B
Nix
Raw Normal View History

2022-05-15 23:32:21 +02:00
# Preconfigured kakoune editor.
{
# Feature flags
typescript ? false,
haskell ? false,
python ? false,
rust ? false,
nix ? true,
# Allow extra plugins to be defined
# outside of the package
extraPlugins ? [],
2022-05-16 17:44:49 +02:00
# Plugins
kak-crosshairs,
2022-05-15 23:32:21 +02:00
# Color theme
theme,
# Build context
pkgs,
lib
}:
let kakrc = (import ./kakrc.nix {
inherit typescript
haskell
python
rust
nix
theme
pkgs
lib;
});
colors = (import ./colors.nix {
inherit theme
pkgs
lib;
});
kak-lsp = (import ./kak-lsp.nix {
inherit typescript
haskell
python
rust
nix
pkgs
lib;
});
in (pkgs.kakoune.override {
plugins = [
# Configuration
kak-lsp
colors
kakrc
# Plugins
2022-05-16 17:44:49 +02:00
kak-crosshairs
2022-05-15 23:32:21 +02:00
] ++ extraPlugins;
})