You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error executing vim.schedule lua callback: ...r/.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'
...r/.local/share/nvim/lazy/ollama.nvim/lua/ollama/init.lua:173: in function 'parse_prompt'
...r/.local/share/nvim/lazy/ollama.nvim/lua/ollama/init.lua:249: in function 'callback'
...r/.local/share/nvim/lazy/ollama.nvim/lua/ollama/init.lua:205: in function 'cb'
...ocal/share/nvim/lazy/dressing.nvim/lua/dressing/util.lua:203: in function <...ocal/share/nvim/lazy/dressing.nvim/lua/dressing/util.lua:202>
Press ENTER or type command to continue
The text was updated successfully, but these errors were encountered:
It was my first experience with lua, but seems that vim.api.nvim_buf_set_text is a bit fragile, and might be not the best choice when number of lines doesn't match for original and suggested text. I ended up by replacing it with:
Error executing vim.schedule lua callback: ...r/.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'
...r/.local/share/nvim/lazy/ollama.nvim/lua/ollama/init.lua:173: in function 'parse_prompt'
...r/.local/share/nvim/lazy/ollama.nvim/lua/ollama/init.lua:249: in function 'callback'
...r/.local/share/nvim/lazy/ollama.nvim/lua/ollama/init.lua:205: in function 'cb'
...ocal/share/nvim/lazy/dressing.nvim/lua/dressing/util.lua:203: in function <...ocal/share/nvim/lazy/dressing.nvim/lua/dressing/util.lua:202>
Press ENTER or type command to continue
The text was updated successfully, but these errors were encountered: