Github Copilot plugin is not installing
Describe the bug The Github co-pilot plugin is not installing when using LUA based configuration.
To Reproduce Steps to reproduce the behavior:
- Setup "init.lua" config from this Repo.
- Go to Copilot Repo - VIM
- Now install it.
- Now open Neovim editor enter command mode and type :Copilot setup
- See the error Copilot setup Command not found.
Desktop (please complete the following information):
- OS: MacOS.
- Terminal: ZSH,iTerm.
** Neovim Version **
- Output of running
:versionfrom inside of neovim: :version
NVIM v0.8.3
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by [email protected]
Features: +acl +iconv +tui
See ":help feature-compile"
system vimrc file: "$VIM/sysinit.vim"
fall-back for $VIM: "/opt/homebrew/Cellar/neovim/0.8.3/share/nvim"
Run :checkhealth for more info
I'm having this exact issue across all of the devices I've tested it with. (3x Linux 1x windows)
Same setup as this user but instead I use alacrity and fish.
Note to user @haseeb-heaven i'm not 100% sure on this so someone correct me if i'm wrong. But i belive the reason that the method didnt work for both of us is due to the fact that kickstart uses the lazy plugin manager.
I was able to get copilot working on all my machines by going into my init.lua file and going to any location within the "require('lazy').setup({" bracket. And entering "'github/copilot.vim'," Heres a screenshot for reference.

Try it out and see if the method works for you too.
@Xanthus58 Thanks i will try and let you know.
Solution mentioned by @Xanthus58 fixed this issue.
Does it show prompts to you so you an tab on them? For me it doesn't, only when running :Copilot, it shows 10 possible answers...
You have to run command Copilot setup to set it up and then it will start running.
I've set it up, had to paste this in nvim init.lua: vim.g.copilot_assume_mapped = true
No i didnt had to do that step
I've set it up, had to paste this in nvim init.lua: vim.g.copilot_assume_mapped = true
I needed this line as well otherwise no inline suggestions would show up. Just curious @alexbaikal, where did you find this setting? I'm not finding any documentation about it.
Hi guys! I just started using Copilot with Neovim myself, and I found what I see as a cleaner solution:
https://github.com/feoh/git_dotfiles/blob/master/.config/nvim/lua/custom/plugins/copilot.lua
Note that this also uses Ctrl-j as the "OK Copilot give me a suggestion" because I couldn't get copilot working with kickstart by default as copilot status would say that it's disabled by default since tab was already in use.
I suspect we could somehow integrate with cmp instead, but I'm happy to be explicit and use Ctrl-j when I want Copilot for now.