aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim-lsp-installer/servers/sourcekit/init.lua
diff options
context:
space:
mode:
authorJesse Claven <jesse.claven@me.com>2021-12-16 06:52:13 +0000
committerGitHub <noreply@github.com>2021-12-16 07:52:13 +0100
commitef71570ea196549bacc3357605f2a1c8356a8386 (patch)
tree76e288e2b6c345a74b409a66faea7c52458e80f1 /lua/nvim-lsp-installer/servers/sourcekit/init.lua
parentadd cssmodules_ls (#333) (diff)
downloadmason-ef71570ea196549bacc3357605f2a1c8356a8386.tar
mason-ef71570ea196549bacc3357605f2a1c8356a8386.tar.gz
mason-ef71570ea196549bacc3357605f2a1c8356a8386.tar.bz2
mason-ef71570ea196549bacc3357605f2a1c8356a8386.tar.lz
mason-ef71570ea196549bacc3357605f2a1c8356a8386.tar.xz
mason-ef71570ea196549bacc3357605f2a1c8356a8386.tar.zst
mason-ef71570ea196549bacc3357605f2a1c8356a8386.zip
add sourcekit for Swift (#336)
Resolves #320.
Diffstat (limited to 'lua/nvim-lsp-installer/servers/sourcekit/init.lua')
-rw-r--r--lua/nvim-lsp-installer/servers/sourcekit/init.lua18
1 files changed, 18 insertions, 0 deletions
diff --git a/lua/nvim-lsp-installer/servers/sourcekit/init.lua b/lua/nvim-lsp-installer/servers/sourcekit/init.lua
new file mode 100644
index 00000000..46fb008c
--- /dev/null
+++ b/lua/nvim-lsp-installer/servers/sourcekit/init.lua
@@ -0,0 +1,18 @@
+local server = require "nvim-lsp-installer.server"
+local std = require "nvim-lsp-installer.installers.std"
+
+return function(name, root_dir)
+ return server.Server:new {
+ name = name,
+ root_dir = root_dir,
+ homepage = "https://github.com/apple/sourcekit-lsp",
+ languages = { "swift" },
+ installer = std.ensure_executables {
+ {
+ "sourcekit-lsp",
+ "sourcekit-lsp was not found in path. Refer to https://github.com/apple/sourcekit-lsp for installation instructions.",
+ },
+ },
+ default_options = {},
+ }
+end