aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGithub Actions <actions@github>2021-02-20 18:58:08 +0000
committerGithub Actions <actions@github>2021-02-20 18:58:08 +0000
commita21a509417aa530fb7b54020f590fa5ccc67de77 (patch)
treeab74097909f1de1f70b1dba428ed0e3520264d73
parentMerge pull request #747 from PhilT/lsp-config-for-fsharp (diff)
downloadnvim-lspconfig-a21a509417aa530fb7b54020f590fa5ccc67de77.tar
nvim-lspconfig-a21a509417aa530fb7b54020f590fa5ccc67de77.tar.gz
nvim-lspconfig-a21a509417aa530fb7b54020f590fa5ccc67de77.tar.bz2
nvim-lspconfig-a21a509417aa530fb7b54020f590fa5ccc67de77.tar.lz
nvim-lspconfig-a21a509417aa530fb7b54020f590fa5ccc67de77.tar.xz
nvim-lspconfig-a21a509417aa530fb7b54020f590fa5ccc67de77.tar.zst
nvim-lspconfig-a21a509417aa530fb7b54020f590fa5ccc67de77.zip
[docgen] Update CONFIG.md
skip-checks: true
-rw-r--r--CONFIG.md40
1 files changed, 40 insertions, 0 deletions
diff --git a/CONFIG.md b/CONFIG.md
index 74b193e6..d1e05bc6 100644
--- a/CONFIG.md
+++ b/CONFIG.md
@@ -22,6 +22,7 @@ that config.
- [elmls](#elmls)
- [flow](#flow)
- [fortls](#fortls)
+- [fsautocomplete](#fsautocomplete)
- [gdscript](#gdscript)
- [ghcide](#ghcide)
- [gopls](#gopls)
@@ -1470,6 +1471,45 @@ require'lspconfig'.fortls.setup{}
}
```
+## fsautocomplete
+
+https://github.com/fsharp/FsAutoComplete
+
+Language Server for F# provded by FsAutoComplete (FSAC).
+
+Download a release of FsAutoComplete from [here](https://github.com/fsharp/FsAutoComplete/releases).
+Instructions to compile from source are found on the main repository.
+
+FsAutoComplete requires the [dotnet-sdk](https://dotnet.microsoft.com/download) to be installed.
+
+You may also need to configure the filetype as Vim defaults to Forth for `*.fs` files:
+
+`autocmd BufNewFile,BufRead *.fs,*.fsx,*.fsi set filetype=fsharp`
+
+This is automatically done by plugins such as [vim-polyglot](https://github.com/sheerun/vim-polyglot), [PhilT/vim-fsharp](https://github.com/PhilT/vim-fsharp) or [fsharp/vim-fsharp](https://github.com/fsharp/vim-fsharp).
+
+**By default, this config doesn't have a `cmd` set.** This is because nvim-lspconfig does not make assumptions about your path. You must add the following to your init.vim or init.lua to set `cmd` to the absolute path ($HOME and ~ are not expanded) of your unzipped and compiled fsautocomplete.dll.
+
+```lua
+require'lspconfig'.fsautocomplete.setup{
+ cmd = {'dotnet', 'path/to/fsautocomplete.dll', '--background-service-enabled'}
+}
+```
+
+
+```lua
+require'lspconfig'.fsautocomplete.setup{}
+
+ Commands:
+
+ Default Values:
+ filetypes = { "fsharp" }
+ init_options = {
+ AutomaticWorkspaceInit = true
+ }
+ root_dir = <function 1>
+```
+
## gdscript
https://github.com/godotengine/godot