Add scala to kak-lsp
This commit is contained in:
parent
721f0c7ae2
commit
54c46fdefc
|
@ -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" ];
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue