summaryrefslogtreecommitdiff
path: root/nvim/lsp/intelephense.lua
diff options
context:
space:
mode:
authoranand <anand.panchdhari@gmail.com>2025-12-17 15:57:55 +0530
committeranand <anand.panchdhari@gmail.com>2025-12-17 15:57:55 +0530
commitb7ef29a8886a57aadb787807a7c6cf74c1f0ed3a (patch)
tree366a68240fbc9da6b1d567bd6c46d1350ad814de /nvim/lsp/intelephense.lua
Nixos
Diffstat (limited to 'nvim/lsp/intelephense.lua')
-rwxr-xr-xnvim/lsp/intelephense.lua32
1 files changed, 32 insertions, 0 deletions
diff --git a/nvim/lsp/intelephense.lua b/nvim/lsp/intelephense.lua
new file mode 100755
index 0000000..383da13
--- /dev/null
+++ b/nvim/lsp/intelephense.lua
@@ -0,0 +1,32 @@
+---@brief
+---
+--- https://intelephense.com/
+---
+--- `intelephense` can be installed via `npm`:
+--- ```sh
+--- npm install -g intelephense
+--- ```
+---
+--- ```lua
+--- -- See https://github.com/bmewburn/intelephense-docs/blob/master/installation.md#initialisation-options
+--- init_options = {
+--- storagePath = …, -- Optional absolute path to storage dir. Defaults to os.tmpdir().
+--- globalStoragePath = …, -- Optional absolute path to a global storage dir. Defaults to os.homedir().
+--- licenceKey = …, -- Optional licence key or absolute path to a text file containing the licence key.
+--- clearCache = …, -- Optional flag to clear server state. State can also be cleared by deleting {storagePath}/intelephense
+--- }
+--- -- See https://github.com/bmewburn/intelephense-docs
+--- settings = {
+--- intelephense = {
+--- files = {
+--- maxSize = 1000000;
+--- };
+--- };
+--- }
+--- ```
+
+return {
+ cmd = { 'intelephense', '--stdio' },
+ filetypes = { 'php' },
+ root_markers = { '.git', 'composer.json' },
+}