16 lines
327 B
Lua
16 lines
327 B
Lua
require "nvchad.mappings"
|
|
local map = vim.keymap.set
|
|
|
|
--
|
|
-- restore shift-y line copy
|
|
map('n', 'Y', 'Y')
|
|
|
|
--
|
|
-- Copilot mappings
|
|
map('i', '<C-]>', 'copilot#Accept("\\<CR>")', {
|
|
expr = true,
|
|
replace_keycodes = false
|
|
})
|
|
map('i', '<C-\\>', '<Plug>(copilot-accept-word)')
|
|
map('i', '<C-S-Right>', '<Plug>(copilot-accept-word)')
|