-
Notifications
You must be signed in to change notification settings - Fork 5
Problems with setup: attempt to index field 'grammar_guard' (a nil value)
#5
Comments
The installer looks harmless FWIW grammar-guard.nvim/lua/grammar-guard/installer.lua Lines 1 to 40 in a52876d
If you don't want to use the installer, there isn't much difference between this extension and just:
|
@mjlbach Thanks for helping! I added the above, but it is not attaching. I get the following from
The logs don't mention |
Yeah, I always keep my latex files under a git directory. While the built in client doesn't need you to pass root, lspconfig still expects a "root" (note, not rootUri) in order to handle "autoattaching" vs autospawning. This is a holdover from the original design of lspconfig, I would just move your files into a git directory (sorry, it's late for me). In the rewrite you can use a scratch server for all latex docs, or declaratively set up projects (via project local configuration files, or my declaratively specifying the project in a runtime lua file, with fallback behavior resembling the current lspconfig behavior but will all the util.dirname hacks purged. |
@mjlbach I think I have found a bug in the LSP setup you provided, or maybe Neovim itself. Please have a look at these two comments, what do you think? valentjn/ltex-ls#113 (comment) |
Codeactions is more @mfusseneggers's thing (sorry to throw you under the bus :P) as I don't really use them. You can file an issue on neovim/neovim (core, not lspconfig) with:
|
|
@mjlbach @oblitum The #5 (comment) bug was a user error, plz ignore. @mjlbach It would be great to get the config you gave me into nvim-lspconfig! It works perfectly, I see no reason to delay it. |
I'm not delaying it, someone just needs to file/follow-up on the PR, and preferably continue implementing client-side, of-spec functionality in grammarguard (or another) plugin that we can then link to if someone wants something more full featured. |
Now ltex-lsp is in nvim-lspconfig I assume grammar-guard is going to need a major update, so this issue is probably irrelevant, I will close it. |
It says
[grammar-guard] The ltex language server has not been installed. Run :GrammarInstall to install it.
, this is not true, I haveltex-ls
installed and in the path. I don't want to run the installer as I don't know what it does to my system, I would like to use my own installation.In my
init.vim
I have this extension installed via vim-plug:lsp.lua
But I get
E5108: Error executing lua xxx/lsp.lua:17: attempt to index field 'grammar_guard' (a nil value)
PS I hope this pull request neovim/nvim-lspconfig#863 gets sorted soon, I am trying this extension until then.
I tried with Neovim 0.5.1 and the master, Thanks!
The text was updated successfully, but these errors were encountered: