nvim-config/lua/plugins/copilot.lua

15 lines
328 B
Lua
Raw Permalink Normal View History

2023-12-17 13:16:29 -08:00
return {
"github/copilot.vim",
lazy = false,
2024-05-18 22:04:13 -07:00
config = function()
2024-08-16 18:38:27 -07:00
vim.api.nvim_set_keymap(
"i",
2024-08-16 18:52:27 -07:00
"<C-J>",
2024-08-16 18:38:27 -07:00
'copilot#Accept("\\<CR>")',
{ silent = true, script = true, expr = true, replace_keycodes = false }
)
2024-05-18 22:04:13 -07:00
vim.g.copilot_no_tab_map = true
vim.g.copilot_assume_mapped = true
end,
2023-12-17 13:16:29 -08:00
}