Add scala to kak-lsp

This commit is contained in:
Natsu Kagami 2022-09-13 20:17:39 +02:00
parent 721f0c7ae2
commit 54c46fdefc
Signed by: nki
GPG key ID: 7306B3D3C3AD6E51
2 changed files with 6 additions and 1 deletions

View file

@ -47,6 +47,11 @@ in
filetypes = [ "typescript" ]; filetypes = [ "typescript" ];
roots = [ "package.json" ]; roots = [ "package.json" ];
}; };
programs.kak-lsp.languages.scala = {
command = "metals";
filetypes = [ "scala" ];
roots = [ "build.sbt" ];
};
programs.kak-lsp.languages.latex = { programs.kak-lsp.languages.latex = {
command = "texlab"; command = "texlab";
filetypes = [ "latex" ]; filetypes = [ "latex" ];

View file

@ -111,7 +111,7 @@ hook global InsertCompletionHide .* %{
try %{ try %{
eval %sh{test -z "$WE_STARTED_KAK" && kak-lsp --kakoune -s $kak_session} eval %sh{test -z "$WE_STARTED_KAK" && kak-lsp --kakoune -s $kak_session}
} }
hook global WinSetOption filetype=(racket|rust|python|go|javascript|typescript|c|cpp|tex|latex|fsharp|ocaml|haskell|nix) %{ hook global WinSetOption filetype=(racket|rust|python|go|javascript|typescript|c|cpp|tex|latex|fsharp|ocaml|haskell|nix|scala) %{
lsp-enable-window lsp-enable-window
map global normal <c-l> ": enter-user-mode lsp<ret>" map global normal <c-l> ": enter-user-mode lsp<ret>"
lsp-auto-hover-enable lsp-auto-hover-enable