mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-07-19 18:25:22 +02:00
Basics for php lsp (#664)
* Update php.lua * Update default-config.lua * Update lv-config.example.lua
This commit is contained in:
parent
927d5b165e
commit
7cd58b1228
3 changed files with 46 additions and 4 deletions
|
@ -1,4 +1,25 @@
|
|||
require'lspconfig'.intelephense.setup {
|
||||
cmd = { DATA_PATH .. "/lspinstall/php/node_modules/.bin/intelephense", "--stdio" },
|
||||
on_attach = require'lsp'.common_on_attach
|
||||
}
|
||||
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
|
||||
},
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue