nice
This commit is contained in:
parent
f0d9ed52c0
commit
e037b3ab4a
4 changed files with 28 additions and 19 deletions
|
|
@ -1,17 +1,3 @@
|
|||
local COPILOT_ENABLED = true
|
||||
|
||||
vim.keymap.set('n', '<F8>', function()
|
||||
if COPILOT_ENABLED then
|
||||
vim.cmd 'Copilot disable'
|
||||
COPILOT_ENABLED = false
|
||||
print 'Copilot disabled'
|
||||
else
|
||||
vim.cmd 'Copilot enable'
|
||||
COPILOT_ENABLED = true
|
||||
print 'Copilot enabled'
|
||||
end
|
||||
end, { noremap = true, silent = true })
|
||||
|
||||
return {
|
||||
'zbirenbaum/copilot.lua',
|
||||
cmd = 'Copilot',
|
||||
|
|
@ -23,7 +9,7 @@ return {
|
|||
-- disable copilot by default
|
||||
copilot.setup {
|
||||
suggestion = {
|
||||
enabled = COPILOT_ENABLED,
|
||||
enabled = true,
|
||||
auto_trigger = true,
|
||||
keymap = {
|
||||
accept = '<Tab>',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue