mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2025-12-12 19:46:20 +00:00
24 lines
393 B
Nix
24 lines
393 B
Nix
{
|
|
lib,
|
|
config,
|
|
hmConfig,
|
|
...
|
|
}:
|
|
let
|
|
cfg = config.presets.base.spellcheck;
|
|
in
|
|
{
|
|
options.presets.base.spellcheck = {
|
|
enable = lib.mkEnableOption "Spellcheck";
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
plugins.lsp.servers.harper_ls = {
|
|
enable = true;
|
|
settings = {
|
|
userDictPath = "${hmConfig.xdg.configHome}/harper-user-dictionary.txt";
|
|
};
|
|
};
|
|
};
|
|
}
|