diff --git a/home/admin-jroeger/configuration.nix b/home/admin-jroeger/configuration.nix index 18232ae..7c75167 100644 --- a/home/admin-jroeger/configuration.nix +++ b/home/admin-jroeger/configuration.nix @@ -9,6 +9,7 @@ hive.doom.enable = true; hive.doom.asDefaultEditor = true; hive.doom.enableCopilot = true; + hive.doom.enableLtexPlus = true; hive.doom.withNixPkgs = true; hive.doom.withShellPkgs = true; hive.doom.withCXXPkgs = true; diff --git a/modules/doom/doom.nix b/modules/doom/doom.nix index 3a09acd..36a6785 100644 --- a/modules/doom/doom.nix +++ b/modules/doom/doom.nix @@ -70,6 +70,7 @@ ++ lib.optionals cfg.withCXXPkgs (cfg.overrideCXXPkgs default-cxx-pkgs) ++ lib.optionals cfg.withPythonPkgs (cfg.overridePythonPkgs default-python-pkgs) ++ lib.optional cfg.enableCopilot pkgs.unstable.copilot-language-server + ++ lib.optional cfg.enableLtexPlus pkgs.ltex-ls-plus ++ default-core-pkgs; doom-socket-name = "main"; wrapped-emacs = pkgs.symlinkJoin { @@ -114,6 +115,7 @@ asDefaultEditor = lib.mkEnableOption "set the EDITOR variable to use the current emacs server (graphical/non-graphical)"; enableCopilot = lib.mkEnableOption "Enable Copilot in Doom Emacs"; enableTidal = lib.mkEnableOption "Enable TidalCycles"; + enableLtexPlus = lib.mkEnableOption "Enable grammar checks via LtexPlus"; withLatexPkgs = lib.mkEnableOption "Enable LaTeX packages in doom path"; withShellPkgs = lib.mkEnableOption "Enable shell packages in doom path"; withNixPkgs = lib.mkEnableOption "Enable LaTeX packages in doom path"; @@ -232,6 +234,11 @@ enable = cfg.enableCopilot; source = ./static/config.d/copilot.el; }; + "doom-config/config.d/ltex-plus.el" = { + enable = cfg.enableLtexPlus; + source = ./static/config.d/ltex-plus.el; + onChange = "${doom-setup} sync --force -u -e"; + }; "doom-config/packages/treesit-docgen.el" = { source = ./static/packages/treesit-docgen.el; }; diff --git a/modules/doom/static/config.d/ltex-plus.el b/modules/doom/static/config.d/ltex-plus.el new file mode 100644 index 0000000..13fc546 --- /dev/null +++ b/modules/doom/static/config.d/ltex-plus.el @@ -0,0 +1,4 @@ +(use-package! lsp-ltex-plus + :defer t + :init + (lsp-ltex-plus-enable-for-modes))