Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,12 @@ Since the stock fsharp layer does not currently include LSP support, you will ne
cp -r spacemacs/fsharp2 ~/.emacs.d/private
```

You may also wish to suppress warnings from lsp-mode, because FSharpLanguageServer emits some notifications that lsp-mode does not support. Note that this configuration applies to all LSP languages, not just F#.

```
(add-to-list 'warning-suppress-types '(lsp-mode))
```

Finally, make sure that you have these layers enabled in your dotspacemacs-configuration-layers. You will need to remove the fsharp layer if you have it, since fsharp2 conflicts with it.

- lsp
Expand Down
2 changes: 1 addition & 1 deletion spacemacs/fsharp2/config.el
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
"The backend to use for IDE features. Possible values are `fsac' and `lsp'")

(defvar fsharp2-lsp-executable "FSharpLanguageServer"
"The locatio nof the FSharpLanguageServer executable")
"The location of the FSharpLanguageServer executable")
5 changes: 1 addition & 4 deletions spacemacs/fsharp2/funcs.el
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,7 @@
(spacemacs/declare-prefix-for-mode 'fsharp-mode "mx" "executable")
(spacemacs/declare-prefix-for-mode 'fsharp-mode "mc" "compile")
(spacemacs/declare-prefix-for-mode 'fsharp-mode "mg" "goto")
(spacemacs/declare-prefix-for-mode 'fsharp-mode "mh" "hint"))

(`lsp
(spacemacs/lsp-bind-keys-for-mode 'fsharp-mode))))
(spacemacs/declare-prefix-for-mode 'fsharp-mode "mh" "hint"))))

(defun spacemacs//fsharp2-setup-company ()
"Conditionally setup company mode"
Expand Down
1 change: 0 additions & 1 deletion spacemacs/fsharp2/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
company
counsel-gtags
helm-gtags
flycheck-mode
))

(defun fsharp2/init-fsharp-mode ()
Expand Down