Skip to content

Fruetel/vim-junior

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

vim-junior

vim-junior is a Neovim plugin providing chat support using the OpenAI API. You can chat directly in your Neovim environment with the power of OpenAI's language models.

image vim-junior explaining it's own code

Setup Instructions

Prerequisites

  1. Neovim with Python3 support. Check Python3 support by running :echo has('python3') in Neovim. If it returns 1, then you have Python3 support.

  2. vim-plug, a plugin manager for Vim.

Installation

Add the following line to your init.vim file in the appropriate location, usually in the vim-plug plugins section:

Plug 'fruetel/vim-junior', {'branch': 'main'}

Then, install the plugin by running :PlugInstall inside Neovim.

Configuration

The vim-junior plugin requires your OpenAI API key to function. Add your OpenAI API key to a .junior file in your home directory as follows:

OPENAI_API_KEY=your-api-key-here

Replace your-api-key-here with your actual OpenAI API key.

Dependencies

This plugin requires the openai Python library.

A requirements.txt file is provided in the root directory of the project. You can install the dependencies using pip:

pip install -r requirements.txt

Usage

Once the plugin is installed and configured, you can use the :Chat command followed by your message to start a conversation. For example:

:Chat Hello, how are you?

About

Your personal junior-engineer, powered by AI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages