The intelephense LS is a freemium tool, and as such requires a purchase of a key to use some advanced features. I know how to add the license key using coc.nvim + coc-phpls, but I’m not sure how to add it using Neovim + lspconfig.
add your licence key into the following file:
YOUR_HOME_DIR/intelephense/licence.txt
and restart Neovim
I take it that is the best way to do so with neovim then and not something that can be passed in to the LSP config for the server i.e.
require("lspconfig").intelephense.setup(config({}))
(Note config
is a local function where my keybindings and such are defined)