configuration.nix/modules/nixvim/options.nix
Jalil David Salamé Messina f9eb730fe7
Some checks failed
/ check (push) Failing after 4s
/ check-renovaterc (push) Successful in 2s
/ build-packages (push) Has been skipped
/ build-vm (push) Has been skipped
/ report-size (push) Has been skipped
refactor(modules/lib): move more options to it
This should keep all my custom options in the same place.
2025-04-21 23:10:57 +02:00

31 lines
1,004 B
Nix

{ lib, ... }:
let
inherit (lib) mkEnableOption mkOption types;
inherit (import ../lib.nix { inherit lib; }) mkDisableOption;
in
{
options.jhome.nvim = {
enable = mkDisableOption "jalil's Neovim configuration";
reduceSize = mkEnableOption "reduce size by disabling big modules";
dev = mkOption {
type = types.submodule {
options = {
enable = mkDisableOption "development configuration";
bundleLSPs = mkDisableOption "bundling LSPs with Neovim (decreases size when disabled)";
bundleGrammars = mkDisableOption "bundling treesitter grammars with Neovim (barely decreases size when disabled)";
};
};
default = { };
example = {
enable = false;
};
description = ''
Development options
Disabling this is advised for headless setups (e.g. servers), where you
won't be doing software development and would prefer to instead have a
smaller package.
'';
};
};
}