Add lightweight package

This commit is contained in:
2026-01-05 22:56:55 -05:00
parent bdaf004472
commit f5ffc18de3
2 changed files with 17 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
{ pkgs, inputs, ... }:
{ pkgs, lib, inputs, light ? false, ... }:
{
colorschemes.tokyonight.enable = true;
@@ -152,7 +152,7 @@
sleuth.enable = true;
rustaceanvim = {
enable = true;
enable = !light;
settings = {
server = {
cmd = [ "${pkgs.rust-analyzer}/bin/rust-analyzer" ];
@@ -175,7 +175,7 @@
};
lsp = {
enable = true;
enable = !light;
keymaps.diagnostic = {
"<leader>j" = "goto_next";
@@ -203,12 +203,12 @@
src = inputs.hml;
})
(pkgs.vimUtils.buildVimPlugin {
(lib.mkIf (!light) (pkgs.vimUtils.buildVimPlugin {
name = "typst-preview";
src = inputs.typst-preview;
})
}))
pkgs.vimPlugins.haskell-tools-nvim
(lib.mkIf (!light) pkgs.vimPlugins.haskell-tools-nvim)
];
extraConfigLua = ''