applied lsp config

This commit is contained in:
Andre Schaf 2025-10-31 15:17:39 +01:00
parent ad2f7805d1
commit ec3135a937
9 changed files with 145 additions and 146 deletions

View file

@ -0,0 +1,25 @@
local my_config = require('lspconf')
vim.lsp.config('intelephense', {
cmd = { 'intelephense', '--stdio' },
filetypes = { 'php' },
root_dir = function(fname)
return vim.loop.cwd()
end,
on_attach = my_config.on_attach,
capabilities = my_config.capabilities,
settings = {
intelephense = {
files = {
maxSize = 1000000,
},
environment = {
includePaths = {
"/home/serii/Sites/wordpress",
"/home/serii/Sites/advanced-custom-fields-pro",
"/home/serii/Sites/woocommerce"
}
}
}
}
})