aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig/intelephense.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/lspconfig/intelephense.lua')
-rw-r--r--lua/lspconfig/intelephense.lua48
1 files changed, 0 insertions, 48 deletions
diff --git a/lua/lspconfig/intelephense.lua b/lua/lspconfig/intelephense.lua
deleted file mode 100644
index 1131ad91..00000000
--- a/lua/lspconfig/intelephense.lua
+++ /dev/null
@@ -1,48 +0,0 @@
-local configs = require 'lspconfig/configs'
-local util = require 'lspconfig/util'
-
-local server_name = 'intelephense'
-local bin_name = 'intelephense'
-
-configs[server_name] = {
- default_config = {
- cmd = { bin_name, '--stdio' },
- filetypes = { 'php' },
- root_dir = function(pattern)
- local cwd = vim.loop.cwd()
- local root = util.root_pattern('composer.json', '.git')(pattern)
-
- -- prefer cwd if root is a descendant
- return util.path.is_descendant(cwd, root) and cwd or root
- end,
- },
- docs = {
- description = [[
-https://intelephense.com/
-
-`intelephense` can be installed via `npm`:
-```sh
-npm install -g intelephense
-```
-]],
- default_config = {
- package_json = 'https://raw.githubusercontent.com/bmewburn/vscode-intelephense/master/package.json',
- root_dir = [[root_pattern("composer.json", ".git")]],
- 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/blob/master/installation.md#initialisation-options
- }]],
- settings = [[{
- intelephense = {
- files = {
- maxSize = 1000000;
- };
- };
- -- See https://github.com/bmewburn/intelephense-docs
- }]],
- },
- },
-}