1
0
Fork 0

configure intelephense data directories

This commit is contained in:
Luca Bilke 2022-11-22 10:25:22 +01:00
parent b62dc6a45b
commit a9aa57f4a4

View file

@ -44,6 +44,24 @@ mason_lspconfig.setup_handlers({
function(server_name)
lspconfig[server_name].setup(opts)
end,
["intelephense"] = function()
opts = {
on_attach = on_attach,
capabilities = capabilities,
init_options = {
storagePath = vim.fn.expand "$XDG_CACHE_HOME" .. "/intelephense",
globalStoragePath = vim.fn.expand "$XDG_DATA_HOME" .. "/intelephense"
},
settings = {
intelephense = {
telemetry = {
enable = false,
}
}
}
}
lspconfig["intelephense"].setup(opts)
end,
["sumneko_lua"] = function()
opts = {
on_attach = on_attach,