nomnivore / ollama.nvim

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

Error when trying to use Explain Code, Ask About Code or Modify Code #16

Open valeth opened 6 months ago

valeth commented 6 months ago

When trying use use any of those three options neovim throws an error

Error executing vim.schedule lua callback: ...h/.local/share/nvim/lazy/ollama.nvim/lua/ollama/init.lua:173: start_col must be less than end_col
stack traceback:
        [C]: in function 'nvim_buf_get_text'
        ...h/.local/share/nvim/lazy/ollama.nvim/lua/ollama/init.lua:173: in function 'parse_prompt'
        ...h/.local/share/nvim/lazy/ollama.nvim/lua/ollama/init.lua:249: in function 'callback'
        ...h/.local/share/nvim/lazy/ollama.nvim/lua/ollama/init.lua:205: in function 'on_choice'
        ...are/nvim/lazy/dressing.nvim/lua/dressing/select/init.lua:78: in function ''
        vim/_editor.lua: in function <vim/_editor.lua:0>

Generate Code works just fine, it's just those ones that throw this error.

hampgoodwin commented 5 months ago

I am also experiencing this issue. I just updated my ollama.nvim today. If it matters, I am using an on-network ollama server on another machine. However, this definitely reads like some kind of lua syntax error. Thanks!!

hampgoodwin commented 5 months ago

Seems dupe of #15