fix treesitter config

This commit is contained in:
2026-04-03 10:35:50 +02:00
parent 6a326d7321
commit 821f9bee27
2 changed files with 18 additions and 21 deletions
+7 -1
View File
@@ -156,7 +156,13 @@ setup_server("intelephense", {
filetypes = { "php" },
-- root_dir = fallback_root_dir,
init_options = {
licenceKey = vim.fn.readfile(vim.fn.expand("$HOME/.config/intelephense/license.txt"))[1],
licenceKey = (function()
local license_path = vim.fn.expand("$HOME/.config/intelephense/license.txt")
if vim.fn.filereadable(license_path) == 1 then
return vim.fn.readfile(license_path)[1]
end
return nil
end)(),
},
settings = {
intelephense = {