diff options
| author | christianchiarulli <[email protected]> | 2021-07-05 16:26:31 -0400 | 
|---|---|---|
| committer | christianchiarulli <[email protected]> | 2021-07-05 16:26:31 -0400 | 
| commit | 20485971641a9d916640ccad05586a641c984ed6 (patch) | |
| tree | d397a3a9adba502b4c26b802d897b8310972f76f /ftplugin/php.lua | |
| parent | 56e82dac4497293541099185441485dd31e98dc8 (diff) | |
| parent | a469c710bfc01f291df68dba40464caaa2b496da (diff) | |
Merge branch 'master' of github.com:ChristianChiarulli/LunarVim into stable
Diffstat (limited to 'ftplugin/php.lua')
| -rw-r--r-- | ftplugin/php.lua | 27 | 
1 files changed, 23 insertions, 4 deletions
| diff --git a/ftplugin/php.lua b/ftplugin/php.lua index abc90092..4dc8e9e0 100644 --- a/ftplugin/php.lua +++ b/ftplugin/php.lua @@ -1,4 +1,23 @@ -require'lspconfig'.intelephense.setup { -    cmd = { DATA_PATH .. "/lspinstall/php/node_modules/.bin/intelephense", "--stdio" }, -    on_attach = require'lsp'.common_on_attach -}
\ No newline at end of file +require("lspconfig").intelephense.setup { +  cmd = { DATA_PATH .. "/lspinstall/php/node_modules/.bin/intelephense", "--stdio" }, +  on_attach = require("lsp").common_on_attach, +  handlers = { +    ["textDocument/publishDiagnostics"] = vim.lsp.with(vim.lsp.diagnostic.on_publish_diagnostics, { +      virtual_text = O.lang.php.diagnostics.virtual_text, +      signs = O.lang.php.diagnostics.signs, +      underline = O.lang.php.diagnostics.underline, +      update_in_insert = true, +    }), +  }, +  filetypes = O.lang.php.filetypes, +  settings = { +    intelephense = { +      format = { +        braces = O.lang.php.format.braces, +      }, +      environment = { +        phpVersion = O.lang.php.environment.php_version, +      }, +    }, +  }, +} | 
