astronvim-user-config/mappings.lua

17 lines
753 B
Lua
Raw Normal View History

2023-12-19 00:55:54 +00:00
return {
n = {
["<C-h>"] = {"db", desc = "Ctrl+Backspace to delete a word backwards"},
["<C-Del>"] = {"dw", desc = "Ctrl+Delete to delete a word forwards"},
["<leader><F2>"] = {":Neotree close<CR>:UndotreeToggle<CR>", desc = "Toggle undo tree"},
["<leader><Left>"] = {"<C-W>h", desc = "Go to the window left"},
["<leader><Right>"] = {"<C-W>l", desc = "Go to the window right"},
["<leader><Up>"] = {"<C-W>k", desc = "Go to the window up"},
["<leader><Down>"] = {"<C-W>j", desc = "Go to the window down"}
2023-12-19 00:55:54 +00:00
},
i = {
2023-12-19 01:02:56 +00:00
["\b"] = {"<C-O>db", desc = "Ctrl+Backspace to delete a word backwards"},
2023-12-19 00:55:54 +00:00
["<C-Del>"] = {"<C-O>dw", desc = "Ctrl+Delete to delete a word forwards"}
}
}