23 lines
453 B
Nix
23 lines
453 B
Nix
{ enableBarBar ? false
|
|
}:
|
|
|
|
{ lib
|
|
, catppuccin-nvim
|
|
, lualine-nvim
|
|
, lualine-lsp-progress
|
|
, barbar-nvim
|
|
, ...
|
|
}:
|
|
|
|
let
|
|
lualinePlugins = [ lualine-nvim lualine-lsp-progress ];
|
|
in
|
|
{
|
|
luaConfig = (builtins.readFile ./catppuccin-nvim.lua)
|
|
+ (builtins.readFile ./lualine.lua)
|
|
+ (lib.optional enableBarBar (builtins.readFile ./barbar.lua));
|
|
|
|
plugins = [ catppuccin-nvim ]
|
|
++ lualinePlugins
|
|
++ (lib.optional enableBarBar [ barbar-nvim ]);
|
|
}
|