nomnivore / ollama.nvim

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

Error: Column index is too high #6

Closed madsamjp closed 7 months ago

madsamjp commented 7 months ago

Now getting this error:

Error executing Lua callback: ...m/site/pack/packer/start/ollama.nvim/lua/ollama/init.lua:167: Column index is too high
stack traceback:
        [C]: in function 'nvim_buf_get_text'
        ...m/site/pack/packer/start/ollama.nvim/lua/ollama/init.lua:167: in function 'parse_prompt'
        ...m/site/pack/packer/start/ollama.nvim/lua/ollama/init.lua:243: in function 'callback'
        ...m/site/pack/packer/start/ollama.nvim/lua/ollama/init.lua:199: in function 'on_choice'
        /usr/share/nvim/runtime/lua/vim/ui.lua:54: in function 'select'
        ...m/site/pack/packer/start/ollama.nvim/lua/ollama/init.lua:192: in function 'show_prompt_picker'
        ...m/site/pack/packer/start/ollama.nvim/lua/ollama/init.lua:211: in function 'prompt'
        ...m/site/pack/packer/start/ollama.nvim/lua/ollama/init.lua:447: in function <...m/site/pack/packer/start/ollama.nvim/lua/ollama/init.lua:446>

Goes away if I revert to commit 6c5f7e8c50196e68bdc1622378a0b8c00328aeeb

nomnivore commented 7 months ago

Hey! Sorry you faced this issue as a result of my oversight. The latest commit should fix this issue, let me know if it persists in any context.

madsamjp commented 7 months ago

Can confirm it's fixed! Thanks :)