Updated config

This commit is contained in:
Eduard Urbach 2025-05-18 15:59:57 +02:00
parent 10baa6f6bb
commit 978e460330
Signed by: eduard
GPG key ID: 49226B848C78F6C8
35 changed files with 159 additions and 694 deletions

View file

@ -1,3 +1,5 @@
vim.g.mapleader = " "
local function map(mode, lhs, rhs, info)
vim.keymap.set(mode, lhs, rhs, { desc = info })
end
@ -6,7 +8,6 @@ map("n", ";", ":", "Command mode")
map("n", "U", "<cmd>redo<cr>", "Redo")
map("n", "<Bslash>", "<cmd>ToggleWord<cr>", "Toggle word")
map("n", "<C-q>", "<cmd>close<cr>", "Close window")
map("n", "<leader>l", "<cmd>Lazy<cr>", "Lazy")
map({"n", "v"}, "q", "<cmd>qa<cr>", "Quit all")
map({"n", "v"}, "<leader>q", "<cmd>qa!<cr>", "Quit all")
map({"n", "i"}, "<esc>", "<cmd>noh<cr><esc>", "Clear search")
@ -65,4 +66,4 @@ map("i", "<S-Right>", "<Esc>v<Right>")
map("n", "<A-Up>", "<C-w>k", "Move to the window above")
map("n", "<A-Down>", "<C-w>j", "Move to the window below")
map("n", "<A-Left>", "<C-w>h", "Move to the window on the left")
map("n", "<A-Right>", "<C-w>l", "Move to the window on the right")
map("n", "<A-Right>", "<C-w>l", "Move to the window on the right")