fix treesitter config
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user