mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2026-01-08 16:52:50 +00:00
feat: nvim integration
This commit is contained in:
33
modules/home-manager/theme/integrations/neovim/default.nix
Normal file
33
modules/home-manager/theme/integrations/neovim/default.nix
Normal file
@@ -0,0 +1,33 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.theme.base16;
|
||||
in
|
||||
{
|
||||
config = mkIf cfg.enable {
|
||||
programs.nixvim = {
|
||||
extraConfigLuaPre = ''
|
||||
require('flavours-colors')
|
||||
'';
|
||||
extraPlugins = [ pkgs.vimPlugins.base16-nvim ];
|
||||
};
|
||||
|
||||
xdg.configFile."flavours/templates/nvim/templates/default.mustache".source = ./default.mustache;
|
||||
|
||||
theme.base16.options.items = [
|
||||
{
|
||||
file = "${config.xdg.configHome}/nvim/lua/flavours-colors.lua";
|
||||
template = "nvim";
|
||||
#hook = "kill -SIGUSR1 $(pgrep kitty)";
|
||||
rewrite = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user