Sorry, this isn't quite ready yet Soon(TM)
Don't use it yet
Here are some alternatives in the interim. I've not actually used any, and can't make any recommendations.
Neovim only for now anyway, newish(TBD) version
Written in Teal
- README.md
- WIP
- Initial release
- Screenshots
- Example vim init
- User defined keybinds
- Example default keybinds
- Error handling
- Integrate openai endpoints effectively
- Operations: Complete, insert, and edit
- Model selection and Parameter settings
- Tokenize text locally, and use treesitter to help with:
- Determining tokens to be sent to AI
- Entire file
- Selection
- Up to cursor
- Multiple marked ranges
- Lexical scope w/ treesitter
- Enclosing function
- Enclosing class
- Imported
- Choose method based on expressions including possibly factors:
- Operation
- Preference/settings
- Number of input tokens
- Number of available tokens for output
- Costs
- Codex vs Text
- Locally stored prior data, including AI prompts and responses
- Error messages
- All
- W/ prompt
- Single
- Range
- Selection
- Stops @ end of
- Line
- Function
- Class
- List
- Comments
- Assist with predicting cost based on cost-per-token, selected settings, etc
- Impossible to guarantee anything here without API access to this information
- plenary.nvim - curl
- Actually requires this forked version until I PR Server Sent Events support
- Optional
- utf8.nvim - tokenization functionality
- dressing.nvim - prettier menus
- telescope.nvim - prettier menus
- Embeds files from
- Neovim types from teal-types
Expects your openai api key in environment variable OPENAI_APIKEY
- Note: IT IS NOT A FREE SERVICE! (though they do provide some starting credit)
Terrible keybinds for the functionality so far are in plugin/openai-test.lua
- They are truly terrible and temporary - I've put no thought in to them
- They are hardcoded for development, likely end users would put everything from plugin/openai-test.lua in their vim init.
- They aren't documented, wait till they are.