fix: copilot completion
This commit is contained in:
parent
4a965fe610
commit
38a379f5e5
2 changed files with 70 additions and 60 deletions
|
|
@ -1,12 +1,27 @@
|
|||
return {
|
||||
"zbirenbaum/copilot.lua",
|
||||
cmd = "Copilot",
|
||||
'zbirenbaum/copilot.lua',
|
||||
cmd = 'Copilot',
|
||||
dependencies = {
|
||||
"github/copilot.vim"
|
||||
'github/copilot.vim',
|
||||
},
|
||||
build = ":Copilot auth",
|
||||
build = ':Copilot auth',
|
||||
opts = {
|
||||
suggestion = { enabled = false },
|
||||
panel = { enabled = false },
|
||||
},
|
||||
config = function()
|
||||
-- vim.cmd [[
|
||||
-- nnoremap <silent> <leader>cp :Copilot<CR>
|
||||
-- nnoremap <silent> <leader>cs :CopilotSend<CR>
|
||||
-- nnoremap <silent> <leader>cr :CopilotReset<CR>
|
||||
-- nnoremap <silent> <leader>cc :CopilotClear<CR>
|
||||
-- nnoremap <silent> <leader>cd :CopilotDisable<CR>
|
||||
-- nnoremap <silent> <leader>ce :CopilotEnable<CR>
|
||||
-- nnoremap <silent> <leader>ct :CopilotToggle<CR>
|
||||
-- ]]
|
||||
|
||||
-- vim.g.copilot_no_tab_map = true
|
||||
vim.g.copilot_assume_mapped = true
|
||||
vim.keymap.set('i', '<C-J>', 'copilot#Accept("<CR>")', { silent = true, expr = true })
|
||||
end,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue