aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim-lsp-installer/servers/fsautocomplete/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/nvim-lsp-installer/servers/fsautocomplete/init.lua')
-rw-r--r--lua/nvim-lsp-installer/servers/fsautocomplete/init.lua25
1 files changed, 25 insertions, 0 deletions
diff --git a/lua/nvim-lsp-installer/servers/fsautocomplete/init.lua b/lua/nvim-lsp-installer/servers/fsautocomplete/init.lua
new file mode 100644
index 00000000..ce341c6b
--- /dev/null
+++ b/lua/nvim-lsp-installer/servers/fsautocomplete/init.lua
@@ -0,0 +1,25 @@
+local server = require "nvim-lsp-installer.server"
+local path = require "nvim-lsp-installer.path"
+local std = require "nvim-lsp-installer.installers.std"
+local shell = require "nvim-lsp-installer.installers.shell"
+
+return function(name, root_dir)
+ return server.Server:new {
+ name = name,
+ root_dir = root_dir,
+ languages = { "fsharp" },
+ homepage = "https://github.com/fsharp/FsAutoComplete",
+ installer = {
+ std.ensure_executables {
+ { "dotnet", "dotnet was not found in path." },
+ },
+ shell.polyshell [[dotnet tool update --tool-path . fsautocomplete]],
+ },
+ default_options = {
+ cmd = {
+ path.concat { root_dir, "fsautocomplete", "dotnet-fsautocomplete" },
+ "--background-service-enabled",
+ },
+ },
+ }
+end