22 lines
474 B
Lua
22 lines
474 B
Lua
require "nvchad.mappings"
|
|
|
|
-- add yours here
|
|
|
|
local map = vim.keymap.set
|
|
|
|
map("n", ";", ":", { desc = "CMD enter command mode" })
|
|
map("i", "jk", "<ESC>")
|
|
|
|
-- map({ "n", "i", "v" }, "<C-s>", "<cmd> w <cr>")
|
|
|
|
-- 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)')
|