Uses Google Gemini to explain and help you to debug some piece of code
There are two main components in this project:
- Go server, which works like a middleware between your vim and Gemini
- Vim plugin, which sends the code to the server and shows the results
Go server is on server folder. It expect a TOKEN as environment variable. You can run it with:
$ GEMINI_API_KEY=YOUR_TOKEN_HERE go run server/main.goIt will wait for connections on port 32000 or PORT environment variable.
Vim plugin can be installed using your favorite plugin manager.
It expect a g:gemini_server variable in your .vimrc which points to your just started server
let g:gemini_server = 'localhost:32000'Select your piece of code using visual mode and hit :GMExplain or :GMDebug