Closed mayakerostasia closed 1 year ago
This is happening because you're calling get_runtime_dir
. Not sure where you got that function, but it doesn't exist in Neovim.
Also copilot.lua
doesn't even accept any plugin_manager_path
option. Please follow the documentation at: https://github.com/zbirenbaum/copilot.lua/blob/master/README.md
Just remove the plugin_manager_path
option, remove the vim.defer_fn
wrapping, follow the docs from https://github.com/zbirenbaum/copilot.lua/blob/master/README.md and the guide from https://github.com/zbirenbaum/copilot.lua/discussions/99#discussioncomment-4483942
It should work as expected.
Pretty sure this is probably not a problem with copilot.lua specifically but I don't know how where to look to fix it
Here's the config
Even removing plugin manager path causes the same or a similar error