diff options
| author | Matthew Moore <acco32@users.noreply.github.com> | 2022-10-11 23:17:49 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-12 14:17:49 +0800 |
| commit | b3bf6a995c08f1f050f29ba695a441a8db0dd0d8 (patch) | |
| tree | 2019ec7ac156abd4c0193709126e0e651d10397d /lua | |
| parent | docs: update server_configurations.md (diff) | |
| download | nvim-lspconfig-b3bf6a995c08f1f050f29ba695a441a8db0dd0d8.tar nvim-lspconfig-b3bf6a995c08f1f050f29ba695a441a8db0dd0d8.tar.gz nvim-lspconfig-b3bf6a995c08f1f050f29ba695a441a8db0dd0d8.tar.bz2 nvim-lspconfig-b3bf6a995c08f1f050f29ba695a441a8db0dd0d8.tar.lz nvim-lspconfig-b3bf6a995c08f1f050f29ba695a441a8db0dd0d8.tar.xz nvim-lspconfig-b3bf6a995c08f1f050f29ba695a441a8db0dd0d8.tar.zst nvim-lspconfig-b3bf6a995c08f1f050f29ba695a441a8db0dd0d8.zip | |
feat: add fsharp-language-server (#2186)
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/server_configurations/fsharp_language_server.lua | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/lua/lspconfig/server_configurations/fsharp_language_server.lua b/lua/lspconfig/server_configurations/fsharp_language_server.lua new file mode 100644 index 00000000..1abc6068 --- /dev/null +++ b/lua/lspconfig/server_configurations/fsharp_language_server.lua @@ -0,0 +1,29 @@ +local util = require 'lspconfig.util' + +return { + default_config = { + cmd = { 'dotnet', 'FSharpLanguageServer.dll' }, + root_dir = util.root_pattern('*.sln', '*.fsproj', '.git'), + filetypes = { 'fsharp' }, + init_options = { + AutomaticWorkspaceInit = true, + }, + settings = {}, + }, + docs = { + description = [[ +F# Language Server +https://github.com/faldor20/fsharp-language-server + +An implementation of the language server protocol using the F# Compiler Service. + +Build the project from source and override the command path to location of DLL. + +If filetype determination is not already performed by an available plugin ([PhilT/vim-fsharp](https://github.com/PhilT/vim-fsharp), [fsharp/vim-fsharp](https://github.com/fsharp/vim-fsharp), and [adelarsq/neofsharp.vim](https://github.com/adelarsq/neofsharp.vim). +), then the following must be added to initialization configuration: + + +`autocmd BufNewFile,BufRead *.fs,*.fsx,*.fsi set filetype=fsharp` +]], + }, +} |
