nvim/lua/mappings.lua

16 lines
327 B
Lua
Raw Normal View History

2024-09-15 22:20:50 +02:00
require "nvchad.mappings"
2024-10-25 16:44:23 +02:00
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)')