Skip to content

Commit 80521ec

Browse files
committed
revert: restore Neovim access to GitHub Copilot
undo #821 Signed-off-by: Lucas Larson <LucasLarson@riseup.net>
1 parent 2f47700 commit 80521ec

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

.config/nvim/init.vim

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@ set ignorecase smartcase
88
" prevent auto indent
99
filetype indent off
1010

11+
" enable Copilot for more filetypes
12+
" https://github.com/afirth/dotfiles/commit/ae51e78ce3
13+
if has('nvim')
14+
let g:copilot_filetypes = {
15+
\ 'gitcommit': v:true,
16+
\ }
17+
endif
18+
1119
" prevent Neovim from resetting iTerm’s cursor
1220
" https://github.com/neovim/neovim/issues/7130
1321
set guicursor=""
Submodule copilot.vim added at 8703812

.gitmodules

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@
3030
branch = main
3131
path = custom/plugins/zsh-abbr
3232
url = https://github.com/olets/zsh-abbr
33+
[submodule ".config/nvim/pack/github/start/copilot.vim"]
34+
branch = release
35+
path = .config/nvim/pack/github/start/copilot.vim
36+
url = https://github.com/github/copilot.vim
3337
[submodule "custom/plugins/zsh-autosuggestions"]
3438
branch = master
3539
path = custom/plugins/zsh-autosuggestions

0 commit comments

Comments
 (0)