mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-15 23:18:03 +02:00
airline: package option
This commit is contained in:
parent
7b7939d4e9
commit
21dfb4ec3d
1 changed files with 7 additions and 1 deletions
|
@ -16,6 +16,12 @@ in
|
|||
plugins.airline = {
|
||||
enable = mkEnableOption "Enable airline";
|
||||
|
||||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.vimPlugins.vim-airline;
|
||||
description = "Plguin to use for airline";
|
||||
};
|
||||
|
||||
extensions = mkOption {
|
||||
default = null;
|
||||
type = with types; nullOr attrs;
|
||||
|
@ -63,7 +69,7 @@ in
|
|||
in
|
||||
mkIf cfg.enable {
|
||||
extraPlugins = with pkgs.vimPlugins; [
|
||||
vim-airline
|
||||
cfg.package
|
||||
] ++ optional (!isNull cfg.theme) vim-airline-themes;
|
||||
globals = {
|
||||
airline.extensions = cfg.extensions;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue