-
Notifications
You must be signed in to change notification settings - Fork 67
Unable to add graphql-language-server #14
Comments
Took me some time to debug. You need to change: Don't ask me why. This could be a bug in neovim, but I'm not a lua expert. |
Internally nvim-lspinstall uses |
@kabouzeid that's quite strange seems like an nvim bug potentially since I don't the choice of separators in a require should cause code to behave differently. Anyway that helped. It seems to work fine now. Just a couple of non blocking issues I noticed. the Also the script can be reloaded more than once without causing errors. I use packer and automatically reload my configs on change but if the custom installer setup is called more than once it seems to throw errors about the |
I'm happy to contribute the gql installer if you'd like it's not particular different from any of the other npm installers |
This was a typo in the README, I fixed it now. Replace This tests whether the file exists, and if not Not sure about the issue with packer, I'm still using Plug. If you send me a small packer config where this is happening, I can look into that. How to add a bundled npm installer, see diagnosticls in this commit 94eb787 |
Hey thanks for your work on this plugins 馃憤馃徔 .
I've just tried to add in an installer for
graphql
using the custom installer setup instructions and hit a blocking issue.I do this before calling setup of the
lspinstall
plugin or doing any setup of the lsp itself usinglspconfig
however I/packer/opt/nvim-lspconfig/lua/lspconfig/configs.lua:10: attempt to index local 'config_def' (a nil value)
Looking at the code in lspconfig it seems to have a validation and looks like expects this field to not be
nil
so throws errors.I tried setting it to an empty object which silences the error but doesn't give me the option to install the server
The text was updated successfully, but these errors were encountered: