diff --git a/home/kakoune/kak.nix b/home/kakoune/kak.nix index 562823d..ce15063 100644 --- a/home/kakoune/kak.nix +++ b/home/kakoune/kak.nix @@ -47,6 +47,11 @@ in filetypes = [ "typescript" ]; roots = [ "package.json" ]; }; + programs.kak-lsp.languages.scala = { + command = "metals"; + filetypes = [ "scala" ]; + roots = [ "build.sbt" ]; + }; programs.kak-lsp.languages.latex = { command = "texlab"; filetypes = [ "latex" ]; diff --git a/home/kakoune/kakrc b/home/kakoune/kakrc index 81de791..ad8637b 100644 --- a/home/kakoune/kakrc +++ b/home/kakoune/kakrc @@ -111,7 +111,7 @@ hook global InsertCompletionHide .* %{ try %{ 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 map global normal ": enter-user-mode lsp" lsp-auto-hover-enable