1
0
Fork 0
mirror of https://github.com/pnx/dotfiles synced 2026-06-17 11:30:02 +02:00

nvim/lua/user/plugins/lang/php: configure intelephense

This commit is contained in:
Henrik Hautakoski 2025-12-06 10:41:07 +01:00
parent 578b4e469b
commit ef6b947bcb
2 changed files with 35 additions and 9 deletions

View file

@ -0,0 +1,34 @@
--- @type LSPServerOptions
return {
init_options = {
globalStoragePath = vim.fn.expand('$HOME/.local/state/intelephense'),
licenceKey = vim.fn.expand('$HOME/.config/intelephense/licence.txt'),
},
settings = {
intelephense = {
files = {
maxSize = 10000000,
exclude = {
"**/.git/**",
"**/.svn/**",
"**/.hg/**",
"**/CVS/**",
"**/.DS_Store/**",
"**/node_modules/**",
"**/bower_components/**",
"**/vendor/**/{Tests,tests}/**",
"**/vendor/fakerphp/**",
"**/.history/**",
"**/vendor/**/vendor/**"
}
},
completion = {
maxItems = 40
},
environment = {
shortOpenTags = true
}
}
}
}