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

32 lines
712 B
Nix
Raw Normal View History

2022-09-19 18:44:57 +03:00
{ enableDevIcons ? false
, enableBarBar ? false
, enableTabby ? false
}:
{ lib
, catppuccin-nvim
, lualine-nvim
, lualine-lsp-progress
2022-09-18 12:15:44 +03:00
, nvim-web-devicons
2022-09-19 18:44:57 +03:00
, barbar-nvim
, tabby-nvim
, ...
}:
let
lualinePlugins = [ lualine-nvim lualine-lsp-progress ];
2022-09-19 18:44:57 +03:00
in
{
2022-09-17 00:39:24 +03:00
luaConfig = (builtins.readFile ./catppuccin-nvim.lua)
+ (builtins.readFile ./lualine.lua)
2022-09-19 18:44:57 +03:00
+ (lib.optional enableBarBar (builtins.readFile ./barbar.lua))
+ (lib.optional enableTabby (builtins.readFile ./tabby-nvim.lua));
plugins = [ catppuccin-nvim ]
++ lualinePlugins
2022-09-18 12:15:44 +03:00
++ (lib.optional enableDevIcons [ nvim-web-devicons ])
2022-09-19 18:44:57 +03:00
++ (lib.optional enableBarBar [ barbar-nvim ])
++ (lib.optional enableTabby [ tabby-nvim ]);
}