jakethekoenig / llm_stream

0 stars 0 forks source link

Initial Neovim Plugin for LLM Integration #2

Closed mentatbot[bot] closed 3 months ago

mentatbot[bot] commented 3 months ago

This PR introduces a new Neovim Python plugin, vim_llm_stream.py, which leverages pynvim and litellm to enhance the editing experience by integrating large language models directly into Neovim. The plugin captures the current buffer's contents and the cursor's position, sends this context along with a user-defined request to litellm, and processes the response by simulating key presses in Neovim.

Key features and decisions made in this implementation include:

This initial version is a foundational step towards deeply integrating large language models into the Neovim ecosystem, opening up possibilities for advanced code assistance, automated refactoring, and more, all within the familiar Neovim interface. Future enhancements could include more sophisticated parsing of litellm responses, customization options for the model and request parameters, and improved error handling and user feedback mechanisms.

Closes issue #1