Have kak-lsp support metals

This commit is contained in:
Natsu Kagami 2023-09-17 20:35:34 +02:00
parent 87d2f63211
commit 5f4668b67b
Signed by: nki
GPG key ID: 55A032EB38B49ADB
4 changed files with 11 additions and 8 deletions

View file

@ -80,11 +80,13 @@ in
programs.kak-lsp.languages.scala = {
command = "metals";
filetypes = [ "scala" ];
roots = [ "build.sbt" ];
roots = [ "build.sbt" "build.sc" ];
settings_section = "metals";
settings.metals = {
enableSemanticHighlighting = true;
showInferredType = true;
decorationProvider = true;
inlineDecorationProvider = true;
};
};
programs.kak-lsp.languages.latex = {

View file

@ -104,7 +104,7 @@ hook global WinSetOption filetype=(racket|rust|python|go|javascript|typescript|c
hook window BufWritePre .* %{ lsp-formatting-sync }
}
hook global WinSetOption filetype=(rust) %{
hook global WinSetOption filetype=(rust|scala) %{
# Enable inlay hints
lsp-inlay-hints-enable window
}