This repository has been archived on 2024-05-17. You can view files and clone it, but cannot push or open issues or pull requests.
neovim/plugins/theme/default.nix

31 lines
712 B
Nix

{ enableDevIcons ? false
, enableBarBar ? false
, enableTabby ? false
}:
{ lib
, catppuccin-nvim
, lualine-nvim
, lualine-lsp-progress
, nvim-web-devicons
, barbar-nvim
, tabby-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))
+ (lib.optional enableTabby (builtins.readFile ./tabby-nvim.lua));
plugins = [ catppuccin-nvim ]
++ lualinePlugins
++ (lib.optional enableDevIcons [ nvim-web-devicons ])
++ (lib.optional enableBarBar [ barbar-nvim ])
++ (lib.optional enableTabby [ tabby-nvim ]);
}