Skip to content
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

Turn the native messenger into a neovim plugin #22

Closed
glacambre opened this issue Jun 11, 2019 · 1 comment
Closed

Turn the native messenger into a neovim plugin #22

glacambre opened this issue Jun 11, 2019 · 1 comment

Comments

@glacambre
Copy link
Owner

This should be fairly easy to do:

  • Have a :FirenvimInstall command that creates a {power,}shell script in ~/.local/share/firenvim and puts the native manifest in ~/.mozilla/native-messaging-hosts
  • On launch, have the neovim plugin open a tcp port (Feature Request: allow opening ports from lua neovim/neovim#10084) and generate a security token, then send token+port number to firefox with stdioopen()
  • Have the webextension open a websocket, send the token to the neovim plugin and then use regular msgpack-rpc messages until end of connection

This is probably going to make starting a new firenvim frame rather slow - we might want to instantiate one neovim process in the background in order to speed things up.

@glacambre
Copy link
Owner Author

This seems to work on windows and linux. Just need to wait for nvim 4.0 to become stable before releasing an updated version on amo.
https://github.com/neovim/neovim/milestone/21

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

No branches or pull requests

1 participant