Have kak-lsp support metals
This commit is contained in:
parent
87d2f63211
commit
5f4668b67b
4 changed files with 11 additions and 8 deletions
|
@ -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 = {
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue