nomnivore / ollama.nvim

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

Allow defining which mode a prompt should be used in #20

Open TravonteD opened 8 months ago

TravonteD commented 8 months ago

Problem

Some models expect text to be selected via visual mode. Currently it displays an error when attempting to use these from normal mode.

Suggestion

Add a mode option to the action spec to allow for specifying the mode that the prompt should be show on.

Example:

Sample_Prompt = {
    ...
    mode = { "n", "v" }
}