diff options
| author | Github Actions <actions@github> | 2021-02-20 18:58:08 +0000 |
|---|---|---|
| committer | Github Actions <actions@github> | 2021-02-20 18:58:08 +0000 |
| commit | a21a509417aa530fb7b54020f590fa5ccc67de77 (patch) | |
| tree | ab74097909f1de1f70b1dba428ed0e3520264d73 | |
| parent | Merge pull request #747 from PhilT/lsp-config-for-fsharp (diff) | |
| download | nvim-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.md | 40 |
1 files changed, 40 insertions, 0 deletions
@@ -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 |
