Closed MunifTanjim closed 1 year ago
https://github.com/zbirenbaum/copilot.lua/issues/130#issuecomment-1441895703
it shows the following error
Error executing vim.schedule lua callback: ...e/pack/packer/opt/copilot.lua/lua/copilot/suggestion.lua:190: attempt to perform arithmetic on a nil value
stack traceback:
...e/pack/packer/opt/copilot.lua/lua/copilot/suggestion.lua:190: in function 'update_preview'
...e/pack/packer/opt/copilot.lua/lua/copilot/suggestion.lua:254: in function 'handler'
...w/Cellar/neovim/0.8.3/share/nvim/runtime/lua/vim/lsp.lua:1383: in function ''
vim/_editor.lua: in function <vim/_editor.lua:0>
Pushed a fix... how about now? 🤔
it works! 🍻
but it still flicker in accept_word
I'm not quite sure if it appears in accept_line
, because it doesn't show up
Trying to fix it for accept_word
is causing other issues. Note that copilot.vim
does not support accept_word
or accept_line
. We just implemented a hacky patch to make it work.
Merging this fix for now.
Thank you for your time and efforts🍺, I really love this project. Have a nice day!⛅️
Resolves https://github.com/zbirenbaum/copilot.lua/issues/130