From 779524d4be46ae180ffb24b8a58e5936b6acc153 Mon Sep 17 00:00:00 2001 From: Natsu Kagami Date: Sun, 24 Sep 2023 16:27:32 +0200 Subject: [PATCH] More fancy F# set up --- home/kakoune/kakrc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/home/kakoune/kakrc b/home/kakoune/kakrc index 6fa9487..3a1e0fe 100644 --- a/home/kakoune/kakrc +++ b/home/kakoune/kakrc @@ -99,12 +99,12 @@ hook global WinSetOption filetype=(racket|rust|python|go|javascript|typescript|c 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 hook window BufWritePre .* %{ lsp-formatting-sync } } -hook global WinSetOption filetype=(rust|scala) %{ +hook global WinSetOption filetype=(rust|scala|fsharp) %{ # Enable inlay hints lsp-inlay-hints-enable window } @@ -124,8 +124,8 @@ map global insert 'A' hook global WinSetOption filetype=(fsharp) %{ set-option window comment_line "//" # Set up formatting - set-option window formatcmd "~/.dotnet/tools/fantomas --stdin --stdout" - hook window -group fsharp-format BufWritePre .* %{ format } + # set-option window formatcmd "~/.dotnet/tools/fantomas --stdin --stdout" + # hook window -group fsharp-format BufWritePre .* %{ format } } hook global WinSetOption filetype=(ocaml) %{