mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-29 13:41:03 +01:00
The kakoune editor has a plugin mechanism and several plugins are
already packaged under `pkgs.kakounePlugins`. However, adding these
packages to `home.packages` is not enough: the `kakoune` package needs
to be configured with the list of plugins to include, so that they get
sourced on start-up.
We add a `programs.kakoune.plugins` option, analogous to
`programs.vim.plugins`.
The change is backwards compatible since `pkgs.kakoune` is defined as
wrapKakoune kakoune-unwrapped { };
and `wrapKakoune` defaults the list of plugins to empty.
PR #1356
13 lines
209 B
Nix
13 lines
209 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
config = {
|
|
programs.kakoune = { enable = true; };
|
|
|
|
nmt.script = ''
|
|
assertFileNotRegex home-path/share/kak/plugins.kak . # file is empty
|
|
'';
|
|
};
|
|
}
|