diff options
Diffstat (limited to 'lua')
5 files changed, 31 insertions, 0 deletions
diff --git a/lua/nvim-lsp-installer/_generated/filetype_map.lua b/lua/nvim-lsp-installer/_generated/filetype_map.lua index cb1f59d2..7b326c4e 100644 --- a/lua/nvim-lsp-installer/_generated/filetype_map.lua +++ b/lua/nvim-lsp-installer/_generated/filetype_map.lua @@ -27,6 +27,7 @@ return { erlang = { "erlangls" }, eruby = { "tailwindcss" }, fortran = { "fortls" }, + fsharp = { "fsautocomplete" }, genie = { "vala_ls" }, go = { "gopls" }, gohtml = { "tailwindcss" }, diff --git a/lua/nvim-lsp-installer/_generated/language_autocomplete_map.lua b/lua/nvim-lsp-installer/_generated/language_autocomplete_map.lua index 23345c01..0ebec0bf 100644 --- a/lua/nvim-lsp-installer/_generated/language_autocomplete_map.lua +++ b/lua/nvim-lsp-installer/_generated/language_autocomplete_map.lua @@ -5,6 +5,7 @@ return { csharp = { "omnisharp" }, d = { "serve_d" }, fortran = { "fortls" }, + fsharp = { "fsautocomplete" }, haskell = { "hls" }, java = { "jdtls" }, javascript = { "rome", "tsserver" }, diff --git a/lua/nvim-lsp-installer/_generated/metadata.lua b/lua/nvim-lsp-installer/_generated/metadata.lua index b2af35af..671a99b7 100644 --- a/lua/nvim-lsp-installer/_generated/metadata.lua +++ b/lua/nvim-lsp-installer/_generated/metadata.lua @@ -64,6 +64,9 @@ return { fortls = { filetypes = { "fortran" } }, + fsautocomplete = { + filetypes = { "fsharp" } + }, gopls = { filetypes = { "go", "gomod" } }, 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 diff --git a/lua/nvim-lsp-installer/servers/init.lua b/lua/nvim-lsp-installer/servers/init.lua index 7eef5de9..1b8492fc 100644 --- a/lua/nvim-lsp-installer/servers/init.lua +++ b/lua/nvim-lsp-installer/servers/init.lua @@ -52,6 +52,7 @@ local CORE_SERVERS = Data.set_of { "erlangls", "eslint", "fortls", + "fsautocomplete", "gopls", "graphql", "groovyls", |
