Skip to content

Commit 73cb10f

Browse files
Require Neovim v0.7
1 parent c2e75a3 commit 73cb10f

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ GitHub Copilot turns natural language prompts including comments and method
66
names into coding suggestions across dozens of languages.
77

88
Copilot.vim is a Vim plugin for GitHub Copilot. For now, it requires Neovim
9-
0.6 (for virtual lines support) and a Node.js installation.
9+
0.7 (for virtual lines support) and a Node.js installation.
1010

1111
To learn more, visit [aka.ms/copilot-learn-more](https://aka.ms/copilot-learn-more)
1212

autoload/copilot.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ let g:autoloaded_copilot = 1
55

66
scriptencoding utf-8
77

8-
let s:has_ghost_text = has('nvim-0.6') && exists('*nvim_buf_get_mark')
8+
let s:has_ghost_text = has('nvim-0.7') && exists('*nvim_buf_get_mark')
99

1010
let s:hlgroup = 'CopilotSuggestion'
1111

@@ -520,7 +520,7 @@ endfunction
520520
function! s:EnabledStatusMessage() abort
521521
let buf_disabled = s:BufferDisabled()
522522
if !s:has_ghost_text && bufwinid('copilot://') == -1
523-
return "Neovim 0.6 required to support ghost text"
523+
return "Neovim 0.7 required to support ghost text"
524524
elseif !copilot#IsMapped()
525525
return '<Tab> map has been disabled or is claimed by another plugin'
526526
elseif !get(g:, 'copilot_enabled', 1)

autoload/copilot/agent.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ function! s:IsArmMacOS() abort
351351
endfunction
352352

353353
function! s:Command() abort
354-
if !has('nvim-0.6') && v:version < 802
354+
if !has('nvim-0.7') && v:version < 802
355355
return [v:null, 'Vim version too old']
356356
endif
357357
let node = get(g:, 'copilot_node_command', '')

0 commit comments

Comments
 (0)