From 6c2fb86c6a03e20abea5ddd17d735885f0b7cb5e Mon Sep 17 00:00:00 2001 From: Michael Lingelbach Date: Wed, 24 Nov 2021 23:01:07 -0500 Subject: feat: expose configs --- lua/lspconfig/intelephense.lua | 48 ------------------------------------------ 1 file changed, 48 deletions(-) delete mode 100644 lua/lspconfig/intelephense.lua (limited to 'lua/lspconfig/intelephense.lua') 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 - }]], - }, - }, -} -- cgit v1.2.3-70-g09d2