diff --git a/mzte-nv/conf/lua/pluginconf/p-lspconf.fnl b/mzte-nv/conf/lua/pluginconf/p-lspconf.fnl index d949c52..c32bb54 100644 --- a/mzte-nv/conf/lua/pluginconf/p-lspconf.fnl +++ b/mzte-nv/conf/lua/pluginconf/p-lspconf.fnl @@ -42,6 +42,41 @@ (setup :haxe_language_server) (setup :html) (setup :jsonls {:on_attach disable-formatter}) +(setup :ltex {:cmd [:ltex-ls-plus] + :filetypes [:typst + :bib + :gitcommit + :markdown + :org + :plaintex + :rst + :rnoweb + :tex + :pandoc + :quarto + :rmd + :context + :html + :xhtml + :mail + :text] + :settings {:ltex {:enabled [:typst + :bibtex + :gitcommit + :markdown + :org + :tex + :restructuredtext + :rsweave + :latex + :quarto + :rmd + :context + :html + :xhtml + :mail + :plaintext]}}}) + (setup :lua_ls {:settings {:Lua {:runtime {:version :LuaJIT :path (do (var p diff --git a/nix/cgnix/nvim-tools/default.nix b/nix/cgnix/nvim-tools/default.nix index f54a283..e93ff5c 100644 --- a/nix/cgnix/nvim-tools/default.nix +++ b/nix/cgnix/nvim-tools/default.nix @@ -23,6 +23,37 @@ let }) (flakePkg "git+https://git.mzte.de/LordMZTE/haxe-language-server.git") config.output.packages.jdtls-wrapped + ( + let + commit = "2b60af"; + in + pkgs.stdenvNoCC.mkDerivation rec { + pname = "ltex-ls-plus"; + version = "18.3.0"; + src = fetchurl { + url = + "https://git.mzte.de/api/packages/LordMZTE/generic/ltex-ls-plus/${version}-${commit}-alpha/ltex-ls-plus-${version}-${commit}-alpha.tar.gz"; + sha256 = "sha256-xiEQXfJNaTW61p6/4hZWr2WhxzwJfZtb8I+hS+s6Ji0="; + }; + + preferLocalBuild = true; + + nativeBuildInputs = [ makeBinaryWrapper ]; + + installPhase = '' + runHook preInstall + + mkdir -p $out + cp -rfv bin/ lib/ $out + rm -fv $out/bin/.lsp-cli.json $out/bin/*.bat + for file in $out/bin/{ltex-ls-plus,ltex-cli-plus}; do + wrapProgram $file --set JAVA_HOME "${jre_headless}" + done + + runHook postInstall + ''; + } + ) lua-language-server (flakePkg "github:oxalica/nil") ocamlPackages.ocaml-lsp