configure intelephense data directories
This commit is contained in:
parent
b62dc6a45b
commit
a9aa57f4a4
1 changed files with 18 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue