diff options
Diffstat (limited to 'lua/lspconfig/intelephense.lua')
| -rw-r--r-- | lua/lspconfig/intelephense.lua | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/lua/lspconfig/intelephense.lua b/lua/lspconfig/intelephense.lua index 08861d5d..2b358c78 100644 --- a/lua/lspconfig/intelephense.lua +++ b/lua/lspconfig/intelephense.lua @@ -1,21 +1,21 @@ -local configs = require 'lspconfig/configs' -local util = require 'lspconfig/util' +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); + 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; - }; + return util.path.is_descendant(cwd, root) and cwd or root + end, + }, docs = { description = [[ https://intelephense.com/ @@ -24,16 +24,16 @@ https://intelephense.com/ ```sh npm install -g intelephense ``` -]]; +]], default_config = { - root_dir = [[root_pattern("composer.json", ".git")]]; + 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#initialisation-options - }]]; + }]], settings = [[{ intelephense = { files = { @@ -41,9 +41,9 @@ npm install -g intelephense }; }; -- See https://github.com/bmewburn/intelephense-docs#configuration-options - }]]; - }; - }; + }]], + }, + }, } -- vim:et ts=2 sw=2 |
