LazyVim/lua/config/keymaps.lua
2023-10-13 17:11:06 +02:00

29 lines
803 B
Lua

-- Keymaps are automatically loaded on the VeryLazy event
--
-- ~/.local/share/nvim/lazy/LazyVim/lua/lazyvim/config/keymaps.lua
-- https://www.lazyvim.org/keymaps
local map = vim.keymap.set
-- Azerty Keyboard
map({ "n", "x" }, "(", "[", { desc = "➤ [", remap = true })
map({ "n", "x" }, ")", "]", { desc = "➤ ]", remap = true })
-- Browser like
-- map({ "n", "x" }, "<space>", "<c-f>", { remap = true })
-- Restore default vim behaviour
vim.keymap.del("n", "<S-h>")
vim.keymap.del("n", "<S-l>")
-- Normal, Visual, Select, Operator-pending
-- n Normal
-- x Visual
-- v Visual, Select
-- s Select: like Visual mode but typing text replaces the selection.
-- o Operator-pending
-- i Insert
-- l Insert, Command-line, Lang-Arg
-- c Command-line: When entering a ":" or "/" command.
-- t Terminal