mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-15 15:12:36 +02:00
floaterm: package option
This commit is contained in:
parent
e338302bfe
commit
187f82ca6d
1 changed files with 9 additions and 2 deletions
|
@ -8,6 +8,13 @@ in
|
|||
options = {
|
||||
plugins.floaterm = {
|
||||
enable = mkEnableOption "Enable floaterm";
|
||||
|
||||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.vimPlugins.vim-floaterm;
|
||||
description = "Plugin to use for floatterm";
|
||||
};
|
||||
|
||||
shell = mkOption {
|
||||
type = types.nullOr types.str;
|
||||
default = null;
|
||||
|
@ -64,8 +71,8 @@ in
|
|||
};
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
extraPlugins = with pkgs.vimPlugins; [
|
||||
vim-floaterm
|
||||
extraPlugins = [
|
||||
cfg.package
|
||||
];
|
||||
globals = {
|
||||
floaterm_shell = mkIf (!isNull cfg.shell) cfg.shell;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue