-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: client.settings is nil #58
Comments
Hi Raphael, |
Thanks for the quick response. I basically copied the ltex_extra config from the readme and changed the language:
If i print the first level of the client table using:
it prints:
No settings entry. If i do
settings entry exists. I've noticed that
seems to expect settings to have a .ltex entry which wasn't the case in the config i provided in the original post.
(additional ltex nesting) If i change client.settings to client.config.settings (in SetLtexSettings and SyncInternalState), I'm on neovim-0.9.5. |
Yeah, I forgot about that peculiarity of ltex server.
|
Could you show me your client table and your client.config table? The path to my actual settings is now client.config.settings.ltex so i still need to change the code of this plugin to make it work. |
I have ltex installed using mason.
I configure it the following way:
the list servers has an entry ltex:
When opening a .tex file i get the following error:
Inside the function SetLtexSettings found in this plugins init.lua (dev branch) the line that causes the error is:
LtexExtra.internal_settings = vim.tbl_deep_extend("force", client.settings, settings)
The reason is that client.settings simply does not exists. Lsp client settings appear to be stored at client.config.settings.
I don't know much about lua or neovim so i'm wondering if i did a mistake in configuring ltex or if this is a bug and the line needs to be changed.
The text was updated successfully, but these errors were encountered: