Use sync formatting for kak-lsp hook

This commit is contained in:
Natsu Kagami 2022-01-30 13:51:08 -05:00
parent 40f0fd3c88
commit 71f46180e4
Signed by: nki
GPG key ID: 7306B3D3C3AD6E51

View file

@ -104,7 +104,7 @@ hook global WinSetOption filetype=(racket|rust|python|go|javascript|typescript|c
}
hook global WinSetOption filetype=(racket|rust|python|go|javascript|typescript|c|cpp|tex|latex|haskell|nix) %{
# Format the document if possible
hook window BufWritePre .* %{ lsp-formatting }
hook window BufWritePre .* %{ lsp-formatting-sync }
}
hook global WinSetOption filetype=(rust|go) %{