aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/nvim-lsp-installer/server.lua1
-rw-r--r--lua/nvim-lsp-installer/servers/intelephense/init.lua14
2 files changed, 15 insertions, 0 deletions
diff --git a/lua/nvim-lsp-installer/server.lua b/lua/nvim-lsp-installer/server.lua
index f907f99c..484dc0aa 100644
--- a/lua/nvim-lsp-installer/server.lua
+++ b/lua/nvim-lsp-installer/server.lua
@@ -21,6 +21,7 @@ local _SERVERS = {
"graphql",
"hls",
"html",
+ "intelephense",
"jsonls",
"omnisharp",
"pyright",
diff --git a/lua/nvim-lsp-installer/servers/intelephense/init.lua b/lua/nvim-lsp-installer/servers/intelephense/init.lua
new file mode 100644
index 00000000..861fe89e
--- /dev/null
+++ b/lua/nvim-lsp-installer/servers/intelephense/init.lua
@@ -0,0 +1,14 @@
+local server = require("nvim-lsp-installer.server")
+local path = require("nvim-lsp-installer.path")
+local npm = require("nvim-lsp-installer.installers.npm")
+
+local root_dir = server.get_server_root_path("php")
+
+return server.Server:new {
+ name = "intelephense",
+ root_dir = root_dir,
+ installer = npm.packages { "intelephense" },
+ default_options = {
+ cmd = { path.concat { root_dir, "node_modules", ".bin", "intelephense" }, "--stdio" },
+ },
+}