mirror of
https://github.com/pnx/dotfiles
synced 2026-06-16 03:14:55 +02:00
nvim/lua/user/plugins/lang/php: configure intelephense
This commit is contained in:
parent
578b4e469b
commit
ef6b947bcb
2 changed files with 35 additions and 9 deletions
|
|
@ -6,15 +6,7 @@ local servers = {
|
|||
},
|
||||
phpactor = require 'user.plugins.lang.php.lsp.phpactor',
|
||||
-- Use intelephense as main server.
|
||||
intelephense = {
|
||||
settings = {
|
||||
intelephense = {
|
||||
-- files = {
|
||||
-- maxSize = 10000000
|
||||
-- }
|
||||
}
|
||||
}
|
||||
}
|
||||
intelephense = require 'user.plugins.lang.php.lsp.intelephense',
|
||||
}
|
||||
|
||||
return {
|
||||
|
|
|
|||
34
nvim/lua/user/plugins/lang/php/lsp/intelephense.lua
Normal file
34
nvim/lua/user/plugins/lang/php/lsp/intelephense.lua
Normal 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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue