services/nvim: use newer ltes-ls, use separate languagetool service if enabled
This commit is contained in:
parent
97a114f637
commit
bff76aee44
1 changed files with 2 additions and 1 deletions
|
@ -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 =
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue