Disable auto-hover in lsp for kak

This commit is contained in:
Natsu Kagami 2023-03-28 07:53:02 +02:00
parent 5340fd3d64
commit 1c20f77772
Signed by: nki
GPG key ID: 7306B3D3C3AD6E51

View file

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