services/nvim: use newer ltes-ls, use separate languagetool service if enabled

This commit is contained in:
Kevin Baensch 2025-07-25 12:16:19 +02:00
parent 97a114f637
commit bff76aee44
Signed by: derped
SSH key fingerprint: SHA256:8/FSu/lmp3c1Z17Gml06JRIEHtDjhwdd7g6pBaHQWBc

View file

@ -7,10 +7,11 @@
lib.optionalAttrs (lib.elem "nvim::lsp::ltex" config.machine.services) { lib.optionalAttrs (lib.elem "nvim::lsp::ltex" config.machine.services) {
ltex = { ltex = {
cmd = [ "${pkgs.ltex-ls}/bin/ltex-ls" ]; cmd = [ "${pkgs.ltex-ls-plus}/bin/ltex-ls-plus" ];
settings = { settings = {
ltex = { ltex = {
language = "de-DE"; language = "de-DE";
languageToolHttpServerUri = lib.optionalString config.services.languagetool.enable "http://localhost:${builtins.toString config.services.languagetool.port}";
}; };
}; };
on_attach = on_attach =