LazyVim/lua/config/keymaps.lua

29 lines
800 B
Lua
Raw Normal View History

2023-01-07 10:52:40 +01:00
-- Keymaps are automatically loaded on the VeryLazy event
2023-09-15 14:44:37 +02:00
--
-- ~/.local/share/nvim/lazy/LazyVim/lua/lazyvim/config/keymaps.lua
-- https://www.lazyvim.org/keymaps
2023-09-06 17:24:13 +02:00
local map = vim.keymap.set
-- Azerty Keyboard
map({ "n", "x" }, "(", "[", { desc = "➤ [", remap = true })
map({ "n", "x" }, ")", "]", { desc = "➤ ]", remap = true })
2023-09-15 14:44:37 +02:00
2023-10-10 17:30:55 +02:00
-- Browser like
map({ "n", "x" }, "<space>", "<c-f>", { remap = true })
2023-09-15 14:44:37 +02:00
-- Restore default vim behaviour
vim.keymap.del("n", "<S-h>")
vim.keymap.del("n", "<S-l>")
2023-10-10 17:30:55 +02:00
-- 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