diff options
Diffstat (limited to 'nvim/lsp/intelephense.lua')
| -rwxr-xr-x | nvim/lsp/intelephense.lua | 32 |
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' }, +} |
