nvim/lua/mappings.lua

22 lines
474 B
Lua
Raw Normal View History

2024-09-15 22:20:50 +02:00
require "nvchad.mappings"
2025-01-05 18:48:43 +01:00
-- add yours here
2024-10-25 16:44:23 +02:00
local map = vim.keymap.set
2025-01-05 18:48:43 +01:00
map("n", ";", ":", { desc = "CMD enter command mode" })
map("i", "jk", "<ESC>")
-- map({ "n", "i", "v" }, "<C-s>", "<cmd> w <cr>")
2024-10-25 16:44:23 +02:00
-- 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)')