Updated config
This commit is contained in:
parent
10baa6f6bb
commit
978e460330
35 changed files with 159 additions and 694 deletions
|
@ -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")
|
Loading…
Add table
Add a link
Reference in a new issue