Use Grammarly Premium with Grammarly LSP in Neovim
Basically, I needed to login via VSCode, then I got it working.
- Download / install VSCode (the horror..)
- Install the extension Grammarly
- Shift-Command-p --> grammarly.login
- Follow the login flow
- Quit VSCode
- Check
ls ~/.config/grammarly-languageserver
- Copy the folder name, this is your clientID
Configure the LSP like this:
require'lspconfig'.grammarly.setup{
on_attach = on_attach,
init_options = { clientId = "<>" }
}
Getting TypeError: Failed to parse URL
? You may need to run using node v16.40:
- Install nvm (https://github.com/nvm-sh/nvm / https://github.com/jorgebucaran/nvm.fish)
nvm install v16.14.0
nvm use 16
nvim