applied lsp config
This commit is contained in:
parent
ad2f7805d1
commit
ec3135a937
9 changed files with 145 additions and 146 deletions
25
lua/lspconf/intelephense.lua
Normal file
25
lua/lspconf/intelephense.lua
Normal 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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue