nomnivore / ollama.nvim

A plugin for managing and integrating your ollama workflows in neovim.
MIT License
311 stars 22 forks source link

Adds $to_cursor token #28

Closed dandowd closed 1 month ago

dandowd commented 3 months ago

This adds a token that will take all of the current buffer up to the cursor. This can be very useful for code completion tasks. In the screenshot the cursor was placed on the "l" of "assetsFile".

Screenshot 2024-03-15 at 12 46 37 PM
nomnivore commented 3 months ago

What kind of workflow advantage does this token provide over simply using a visual selection? ex: vgg0 to select from beginning of file to cursor, then use a prompt.

I'm otherwise fine with the concept, I just don't want too many highly specific tokens.