Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

Login and autocomplete in nvim #3

Open
Juanitovh opened this issue May 5, 2022 · 1 comment
Open

Login and autocomplete in nvim #3

Juanitovh opened this issue May 5, 2022 · 1 comment

Comments

@Juanitovh
Copy link

I'm currently trying to set up Grammarly for nvim, I'd like to login and use the autocompletion Grammarly suggests.

This is what I currently have, besides the normal lsp configurations.

require'lspconfig'.grammarly.setup{
cmd = { "unofficial-grammarly-language-server", "--stdio" },
filetypes = { "markdown" , "tex" },
handlers = {["$/updateDocumentState"] = <function 1> },
grammarly = { 'login' },
}

Ideally I would trigger the changes with the code_action function, right?
vim.api.nvim_buf_set_keymap(bufnr, "n", "ga", "lua vim.lsp.buf.code_action()", opts)

Could you kindly guide me to solve those two task?

Thank you!

@Juanitovh Juanitovh changed the title Hello! Login and autocomplete in nvim May 5, 2022
@jcs090218
Copy link
Member

jcs090218 commented May 5, 2022

Hi,

I don't use neovim and not sure how vim set up lsp config. But to login, see #2.

And for suggestion, I think you have the right direction. This should also accomplished through the client side.

In Emacs, we use lsp-ui sideline to accomplish this action (code action).

Hope these information help! :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants