More fancy F# set up

This commit is contained in:
Natsu Kagami 2023-09-24 16:27:32 +02:00
parent 53a19597e5
commit 779524d4be
Signed by: nki
GPG key ID: 55A032EB38B49ADB

View file

@ -99,12 +99,12 @@ hook global WinSetOption filetype=(racket|rust|python|go|javascript|typescript|c
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|fsharp) %{
# Format the document if possible # Format the document if possible
hook window BufWritePre .* %{ lsp-formatting-sync } hook window BufWritePre .* %{ lsp-formatting-sync }
} }
hook global WinSetOption filetype=(rust|scala) %{ hook global WinSetOption filetype=(rust|scala|fsharp) %{
# Enable inlay hints # Enable inlay hints
lsp-inlay-hints-enable window lsp-inlay-hints-enable window
} }
@ -124,8 +124,8 @@ map global insert <a-a> '<esc>A'
hook global WinSetOption filetype=(fsharp) %{ hook global WinSetOption filetype=(fsharp) %{
set-option window comment_line "//" set-option window comment_line "//"
# Set up formatting # Set up formatting
set-option window formatcmd "~/.dotnet/tools/fantomas --stdin --stdout" # set-option window formatcmd "~/.dotnet/tools/fantomas --stdin --stdout"
hook window -group fsharp-format BufWritePre .* %{ format } # hook window -group fsharp-format BufWritePre .* %{ format }
} }
hook global WinSetOption filetype=(ocaml) %{ hook global WinSetOption filetype=(ocaml) %{