From 1940290837dee80fd83cd21099b930df84ca6494 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20P?= Date: Thu, 5 Sep 2024 06:00:33 +0200 Subject: [PATCH 1/2] fix(lazy): mason specs (#402) --- lua/plugins/mason.lua | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/lua/plugins/mason.lua b/lua/plugins/mason.lua index 51acf5d..f935494 100644 --- a/lua/plugins/mason.lua +++ b/lua/plugins/mason.lua @@ -1,12 +1,17 @@ return { - 'williamboman/mason.nvim', - cmd = { - 'Mason', - 'MasonUpdate', - 'MasonInstall', - 'MasonUninstall', - 'MasonUninstallAll', - 'MasonLog', + { + 'williamboman/mason.nvim', + cmd = { + 'Mason', + 'MasonUpdate', + 'MasonInstall', + 'MasonUninstall', + 'MasonUninstallAll', + 'MasonLog', + }, + config = function() + require('mason').setup() + end, }, { 'williamboman/mason-lspconfig.nvim', From 7bd480b43b317a1395cafb21fa256af46b8d1646 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20P?= Date: Thu, 5 Sep 2024 19:51:45 +0200 Subject: [PATCH 2/2] refac(ftplugin): php intelephense files maxsize (#403) --- after/ftplugin/php.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/after/ftplugin/php.lua b/after/ftplugin/php.lua index d481184..98568c5 100644 --- a/after/ftplugin/php.lua +++ b/after/ftplugin/php.lua @@ -3,6 +3,12 @@ local config = { name = 'intelephense', cmd = { 'intelephense', '--stdio' }, root_dir = vim.fs.dirname(vim.fs.find({ '.git', 'composer.json' }, { upward = true })[1]), + settings = { + files = { + maxSize = 1000000000, -- 10 Mo + }, + -- See https://github.com/bmewburn/intelephense-docs + }, } vim.lsp.start(config, {