mirror of
https://mzte.de/git/LordMZTE/dotfiles.git
synced 2024-12-05 03:32:34 +01:00
mzte-nv: use ltex-ls-plus
This commit is contained in:
parent
bcb11fa48c
commit
dbff6bbbc5
2 changed files with 66 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue