Skip to content

Commit c415c4e

Browse files
committed
feat: warn about requirement of 0.11+ coming up
fixes #555
1 parent 6e43536 commit c415c4e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lua/copilot/init.lua

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ local client = require("copilot.client")
55
local config = require("copilot.config")
66

77
M.setup = function(opts)
8+
if vim.fn.has("nvim-0.11") == 0 then
9+
vim.notify_once(
10+
"[copilot.lua] Neovim 0.11+ will soon be required. Please upgrade your Neovim version if you wish to keep using this plugin.",
11+
vim.log.levels.WARN
12+
)
13+
return
14+
end
15+
816
if M.setup_done then
917
return
1018
end

0 commit comments

Comments
 (0)