diff options
author | Rafael <[email protected]> | 2021-07-04 22:14:01 -0300 |
---|---|---|
committer | Rafael <[email protected]> | 2021-07-04 22:14:01 -0300 |
commit | 9f511bcb594b7e2461c97cb8182603928c773c2f (patch) | |
tree | c08a825ae91201fb0062dbd7a8094357f5c78dc9 /ftplugin/php.lua | |
parent | b461c878e6f70a6795d0e9b438335ccfecbb4bd9 (diff) |
start formatting rules
Diffstat (limited to 'ftplugin/php.lua')
-rw-r--r-- | ftplugin/php.lua | 44 |
1 files changed, 21 insertions, 23 deletions
diff --git a/ftplugin/php.lua b/ftplugin/php.lua index b571a213..4dc8e9e0 100644 --- a/ftplugin/php.lua +++ b/ftplugin/php.lua @@ -1,25 +1,23 @@ -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 - - }) +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, + }, }, - filetypes = O.lang.php.filetypes, - settings = { - intelephense = { - format = { - braces = O.lang.php.format.braces - }, - environment = { - phpVersion = O.lang.php.environment.php_version - }, - } - }; + }, } |