spacemacs/layers/+lang/fsharp
niontrix 28dba78259
Fix fsharp-mode autocomplete not working
Fsharp-mode has recently undergone some major changes. FSAutocomplete is
no longer distributed with Fsharp-mode. Instead Eglot is used a language
server that pulls in FSAutocomplete. To get auto-completion working
again eglot-fsharp has to be required and an instance of Eglot has to be
started once an F# file is opened.
2020-10-15 22:42:51 +02:00
..
img
config.el update copyright to 2020 2020-09-23 21:25:01 +02:00
packages.el Fix fsharp-mode autocomplete not working 2020-10-15 22:42:51 +02:00
README.org Fix fsharp-mode autocomplete not working 2020-10-15 22:42:51 +02:00

F# layer

/TakeV/spacemacs/media/commit/28dba782593c39f4fc6c0e8fd5513ca64eb4cb4d/layers/+lang/fsharp/img/fsharp.png

Description

This layer adds support for F# language using fsharpbinding and fsharp-mode.

Features:

  • Syntax highlighting
  • Code completion (through Eglot)
  • Flycheck integration
  • REPL
  • Compile/Run/Interpreter and info tooltip shortcuts

Install

To use this configuration layer, add it to your ~/.spacemacs. You will need to add fsharp to the existing dotspacemacs-configuration-layers list in this file.

Key bindings

Key binding Description
SPC m c c Build the project
SPC m g g Go to definition at point
SPC m h t Show tooltip help at point
SPC m e j Start Eglot

REPL

Key binding Description
SPC m s b Send buffer to the REPL
SPC m s B Send buffer to the REPL and switch to the REPL in insert state
SPC m s i Start a REPL
SPC m s p Send phrase to the REPL
SPC m s P Send phrase to the REPL and switch to the REPL in insert state
SPC m s r Send region to the REPL
SPC m s R Send region to the REPL and switch to the REPL in insert state
SPC m s s Show the REPL