Feat: New Scripts, new functions

This commit is contained in:
coolnsx
2025-10-22 14:17:33 +05:30
parent 135b8ce642
commit 46ba34c8e5
26 changed files with 469 additions and 353 deletions

View File

@@ -59,33 +59,12 @@ local capabilities = vim.lsp.protocol.make_client_capabilities()
capabilities = require('cmp_nvim_lsp').default_capabilities(capabilities)
local lspconfig = require('lspconfig')
local configs = require ('lspconfig.configs')
--for enabling intelephense
if not configs.intelephense then
configs.intelephense = {
default_config = {
cmd = { 'intelephense', '--stdio' };
filetypes = { 'php' };
root_dir = function ()
return vim.loop.cwd();
end;
settings = {
intelephense = {
files = {
maxSize = 1000000;
};
}
}
}
}
end
--for enabling phpactor
lspconfig.phpactor.setup{
on_attach = on_attach,
init_options = {
["language_server_phpstan.enabled"] = false,
["language_server_phpstan.enabled"] = true,
["language_server_psalm.enabled"] = false,
}
}