Compare commits

..
3 Commits
5 changed files with 20 additions and 2 deletions
+1
View File
@@ -9,6 +9,7 @@
hive.doom.enable = true; hive.doom.enable = true;
hive.doom.asDefaultEditor = true; hive.doom.asDefaultEditor = true;
hive.doom.enableCopilot = true; hive.doom.enableCopilot = true;
hive.doom.enableLtexPlus = true;
hive.doom.withNixPkgs = true; hive.doom.withNixPkgs = true;
hive.doom.withShellPkgs = true; hive.doom.withShellPkgs = true;
hive.doom.withCXXPkgs = true; hive.doom.withCXXPkgs = true;
+12
View File
@@ -70,6 +70,7 @@
++ lib.optionals cfg.withCXXPkgs (cfg.overrideCXXPkgs default-cxx-pkgs) ++ lib.optionals cfg.withCXXPkgs (cfg.overrideCXXPkgs default-cxx-pkgs)
++ lib.optionals cfg.withPythonPkgs (cfg.overridePythonPkgs default-python-pkgs) ++ lib.optionals cfg.withPythonPkgs (cfg.overridePythonPkgs default-python-pkgs)
++ lib.optional cfg.enableCopilot pkgs.unstable.copilot-language-server ++ lib.optional cfg.enableCopilot pkgs.unstable.copilot-language-server
++ lib.optional cfg.enableLtexPlus pkgs.ltex-ls-plus
++ default-core-pkgs; ++ default-core-pkgs;
doom-socket-name = "main"; doom-socket-name = "main";
wrapped-emacs = pkgs.symlinkJoin { wrapped-emacs = pkgs.symlinkJoin {
@@ -114,6 +115,7 @@
asDefaultEditor = lib.mkEnableOption "set the EDITOR variable to use the current emacs server (graphical/non-graphical)"; asDefaultEditor = lib.mkEnableOption "set the EDITOR variable to use the current emacs server (graphical/non-graphical)";
enableCopilot = lib.mkEnableOption "Enable Copilot in Doom Emacs"; enableCopilot = lib.mkEnableOption "Enable Copilot in Doom Emacs";
enableTidal = lib.mkEnableOption "Enable TidalCycles"; enableTidal = lib.mkEnableOption "Enable TidalCycles";
enableLtexPlus = lib.mkEnableOption "Enable grammar checks via LtexPlus";
withLatexPkgs = lib.mkEnableOption "Enable LaTeX packages in doom path"; withLatexPkgs = lib.mkEnableOption "Enable LaTeX packages in doom path";
withShellPkgs = lib.mkEnableOption "Enable shell packages in doom path"; withShellPkgs = lib.mkEnableOption "Enable shell packages in doom path";
withNixPkgs = lib.mkEnableOption "Enable LaTeX packages in doom path"; withNixPkgs = lib.mkEnableOption "Enable LaTeX packages in doom path";
@@ -232,6 +234,11 @@
enable = cfg.enableCopilot; enable = cfg.enableCopilot;
source = ./static/config.d/copilot.el; 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" = { "doom-config/packages/treesit-docgen.el" = {
source = ./static/packages/treesit-docgen.el; source = ./static/packages/treesit-docgen.el;
}; };
@@ -248,6 +255,11 @@
source = ./static/packages.d/copilot.el; source = ./static/packages.d/copilot.el;
onChange = "${doom-setup} sync --force -u -e"; onChange = "${doom-setup} sync --force -u -e";
}; };
"doom-config/packages.d/ltex-plus.el" = {
enable = cfg.enableLtexPlus;
source = ./static/packages.d/ltex-plus.el;
onChange = "${doom-setup} sync --force -u -e";
};
"doom-config/packages.d/tidal.el" = { "doom-config/packages.d/tidal.el" = {
enable = cfg.enableTidal; enable = cfg.enableTidal;
source = ./static/packages.d/tidal.el; source = ./static/packages.d/tidal.el;
@@ -0,0 +1,4 @@
(use-package! lsp-ltex-plus
:defer t
:init
(lsp-ltex-plus-enable-for-modes))
+2 -2
View File
@@ -83,8 +83,8 @@
:checkers :checkers
syntax ; tasing you for every semicolon you forget syntax ; tasing you for every semicolon you forget
(spell +flyspell) ; tasing you for misspelling mispelling ;;(spell +flyspell) ; tasing you for misspelling mispelling
grammar ; tasing grammar mistake every you make ;;grammar ; tasing grammar mistake every you make
:tools :tools
;;ansible ;;ansible
@@ -0,0 +1 @@
(package! lsp-ltex-plus)