diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2025-04-18 17:44:38 +0200 |
|---|---|---|
| committer | Justin M. Keyes <justinkz@gmail.com> | 2025-04-18 17:44:38 +0200 |
| commit | f8b5cbe6312b568def1f91d747e2cdb8984fdf2e (patch) | |
| tree | c1baf319b22d8ccc7d3468276b5ba9a26dfa2775 /lsp/intelephense.lua | |
| parent | feat: angularls #3746 (diff) | |
| download | nvim-lspconfig-f8b5cbe6312b568def1f91d747e2cdb8984fdf2e.tar nvim-lspconfig-f8b5cbe6312b568def1f91d747e2cdb8984fdf2e.tar.gz nvim-lspconfig-f8b5cbe6312b568def1f91d747e2cdb8984fdf2e.tar.bz2 nvim-lspconfig-f8b5cbe6312b568def1f91d747e2cdb8984fdf2e.tar.lz nvim-lspconfig-f8b5cbe6312b568def1f91d747e2cdb8984fdf2e.tar.xz nvim-lspconfig-f8b5cbe6312b568def1f91d747e2cdb8984fdf2e.tar.zst nvim-lspconfig-f8b5cbe6312b568def1f91d747e2cdb8984fdf2e.zip | |
docs: cleanup
- brief should live at the top of each file
- fix indentation for some docs
Diffstat (limited to 'lsp/intelephense.lua')
| -rw-r--r-- | lsp/intelephense.lua | 53 |
1 files changed, 27 insertions, 26 deletions
diff --git a/lsp/intelephense.lua b/lsp/intelephense.lua index 13f7fd06..9910e207 100644 --- a/lsp/intelephense.lua +++ b/lsp/intelephense.lua @@ -1,31 +1,32 @@ -local util = require 'lspconfig.util' - ---@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; --- }; --- }; --- } --- ``` +--- 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; +--- }; +--- }; +--- } +--- ``` + +local util = require 'lspconfig.util' + return { cmd = { 'intelephense', '--stdio' }, filetypes = { 'php' }, |
