diff --git a/home/kakoune/kakrc b/home/kakoune/kakrc index da85fc2..4321692 100644 --- a/home/kakoune/kakrc +++ b/home/kakoune/kakrc @@ -113,10 +113,12 @@ try %{ } 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 + map window normal ": enter-user-mode lsp" + map window normal ": lsp-hover" + map window normal ": lsp-hover-buffer" # lsp-auto-hover-insert-mode-enable set window lsp_hover_anchor true + } hook global WinSetOption filetype=(racket|rust|python|go|javascript|typescript|c|cpp|tex|latex|haskell|nix) %{ # Format the document if possible @@ -128,7 +130,7 @@ hook global WinSetOption filetype=(rust) %{ lsp-inlay-hints-enable window } -hook global WinSetOption filetype=(rust|go|fsharp) %{ +hook global WinSetOption filetype=(rust|go|fsharp|scala) %{ hook window -group semantic-tokens BufReload .* lsp-semantic-tokens hook window -group semantic-tokens NormalIdle .* lsp-semantic-tokens hook window -group semantic-tokens InsertIdle .* lsp-semantic-tokens