mirror of
https://github.com/nix-community/home-manager
synced 2024-11-30 15:09:46 +01:00
96e2f1bdf0
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
|
|
'';
|
|
};
|
|
}
|