Some shuffling in kak-lsp options
This commit is contained in:
parent
060b4cd98d
commit
667c81d349
|
@ -120,16 +120,18 @@ hook global WinSetOption filetype=(racket|rust|python|go|javascript|typescript|c
|
|||
map global normal <c-l> ": enter-user-mode lsp<ret>"
|
||||
lsp-auto-hover-enable
|
||||
# lsp-auto-hover-insert-mode-enable
|
||||
set buffer lsp_hover_anchor true
|
||||
lsp-inlay-diagnostics-enable buffer
|
||||
set window lsp_hover_anchor true
|
||||
}
|
||||
hook global WinSetOption filetype=(racket|rust|python|go|javascript|typescript|c|cpp|tex|latex|haskell|nix) %{
|
||||
# Note that fsharp is not here
|
||||
lsp-inlay-hints-enable buffer
|
||||
# Format the document if possible
|
||||
hook window BufWritePre .* %{ lsp-formatting-sync }
|
||||
}
|
||||
|
||||
hook global WinSetOption filetype=(rust) %{
|
||||
# Enable inlay hints
|
||||
lsp-inlay-hints-enable window
|
||||
}
|
||||
|
||||
hook global WinSetOption filetype=(rust|go|fsharp) %{
|
||||
hook window -group semantic-tokens BufReload .* lsp-semantic-tokens
|
||||
hook window -group semantic-tokens NormalIdle .* lsp-semantic-tokens
|
||||
|
@ -143,7 +145,10 @@ hook global WinSetOption filetype=(rust|go|fsharp) %{
|
|||
map global insert <a-a> '<esc>A'
|
||||
|
||||
hook global WinSetOption filetype=(fsharp) %{
|
||||
set-option buffer comment_line "//"
|
||||
set-option window comment_line "//"
|
||||
# Set up formatting
|
||||
set-option window formatcmd "~/.dotnet/tools/fantomas --stdin --stdout"
|
||||
hook window -group fsharp-format BufWritePre .* %{ format }
|
||||
}
|
||||
|
||||
hook global WinSetOption filetype=(ocaml) %{
|
||||
|
|
Loading…
Reference in a new issue