floaterm: package option

This commit is contained in:
Alexander Nortung 2023-01-17 23:14:09 +01:00
parent e338302bfe
commit 187f82ca6d

View file

@ -8,6 +8,13 @@ in
options = { options = {
plugins.floaterm = { plugins.floaterm = {
enable = mkEnableOption "Enable floaterm"; enable = mkEnableOption "Enable floaterm";
package = mkOption {
type = types.package;
default = pkgs.vimPlugins.vim-floaterm;
description = "Plugin to use for floatterm";
};
shell = mkOption { shell = mkOption {
type = types.nullOr types.str; type = types.nullOr types.str;
default = null; default = null;
@ -64,8 +71,8 @@ in
}; };
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
extraPlugins = with pkgs.vimPlugins; [ extraPlugins = [
vim-floaterm cfg.package
]; ];
globals = { globals = {
floaterm_shell = mkIf (!isNull cfg.shell) cfg.shell; floaterm_shell = mkIf (!isNull cfg.shell) cfg.shell;