37 lines
955 B
Lua
37 lines
955 B
Lua
-- You can add your own plugins here or in other files in this directory!
|
|
-- I promise not to create any merge conflicts in this directory :)
|
|
--
|
|
-- See the kickstart.nvim README for more information
|
|
return {
|
|
-- Configure copilot
|
|
{
|
|
'zbirenbaum/copilot.lua',
|
|
cmd = 'Copilot',
|
|
build = ':Copilot auth',
|
|
event = 'InsertEnter',
|
|
config = function()
|
|
require('copilot').setup {
|
|
suggestion = { enabled = false },
|
|
panel = { enabled = false },
|
|
filetypes = {
|
|
markdown = true,
|
|
help = true,
|
|
},
|
|
}
|
|
|
|
vim.api.nvim_create_autocmd('User', {
|
|
pattern = 'BlinkCmpMenuOpen',
|
|
callback = function()
|
|
vim.b.copilot_suggestion_hidden = true
|
|
end,
|
|
})
|
|
vim.api.nvim_create_autocmd('User', {
|
|
pattern = 'BlinkCmpMenuClose',
|
|
callback = function()
|
|
vim.b.copilot_suggestion_hidden = false
|
|
end,
|
|
})
|
|
end,
|
|
},
|
|
}
|