Compare commits

...

1 commit

Author SHA1 Message Date
01521609d0
Remove scala double formatting hook 2025-03-21 16:45:09 +01:00
2 changed files with 1 additions and 6 deletions

View file

@ -112,11 +112,6 @@ hook global WinSetOption filetype=(rust) %{
set-option buffer makecmd "cargo check" set-option buffer makecmd "cargo check"
} }
hook global WinSetOption filetype=(scala) %{
# Format the document if possible
hook -group scala-fmt window BufWritePre .* %{ lsp-formatting-sync }
}
hook global WinSetOption filetype=(typst) %{ hook global WinSetOption filetype=(typst) %{
set-option window comment_line "//" set-option window comment_line "//"
set-option window comment_block_begin "/*" set-option window comment_block_begin "/*"

View file

@ -297,7 +297,7 @@ in
map global object d '<a-semicolon>lsp-diagnostic-object --include-warnings<ret>' -docstring 'LSP errors and warnings' map global object d '<a-semicolon>lsp-diagnostic-object --include-warnings<ret>' -docstring 'LSP errors and warnings'
map global object D '<a-semicolon>lsp-diagnostic-object<ret>' -docstring 'LSP errors' map global object D '<a-semicolon>lsp-diagnostic-object<ret>' -docstring 'LSP errors'
hook global WinSetOption filetype=(racket|rust|python|go|javascript|typescript|c|cpp|tex|latex|haskell|nix|fsharp|templ) %{ hook global WinSetOption filetype=(racket|rust|python|go|javascript|typescript|c|cpp|tex|latex|haskell|nix|fsharp|templ|scala) %{
# Format the document if possible # Format the document if possible
hook window -group lsp-formatting BufWritePre .* %{ lsp-formatting-sync } hook window -group lsp-formatting BufWritePre .* %{ lsp-formatting-sync }
} }