feat: add mapping to quit
This commit is contained in:
parent
a083ec624c
commit
97a38005f4
1 changed files with 13 additions and 11 deletions
|
@ -5,14 +5,16 @@ require "nvchad.mappings"
|
|||
local map = vim.keymap.set
|
||||
|
||||
map("n", ";", ":", { desc = "CMD enter command mode" })
|
||||
map("i", "jk", "<ESC>")
|
||||
map("n", "<leader>gr", "<cmd> Gitsigns reset_hunk <CR>", { desc = "Reset hunk"})
|
||||
map("n", "<leader>gp", "<cmd> Gitsigns preview_hunk <CR>", { desc = "See preview hunk"})
|
||||
map("n", "<leader>gd", "<cmd> Gitsigns diffthis <CR>", { desc = "See diff"})
|
||||
map("n", "<leader>gco", "<cmd> GitConflictChooseOurs <CR>", { desc = "Git conflict ours"})
|
||||
map("n", "<leader>gct", "<cmd> GitConflictChooseTheirs <CR>", { desc = "Git conflict theirs"})
|
||||
map("n", "<leader>gcb", "<cmd> GitConflictChooseBoth <CR>", { desc = "Git conflict both"})
|
||||
map("n", "<leader>gc0", "<cmd> GitConflictChooseNone <CR>", { desc = "Git conflict none"})
|
||||
map("n", "<leader>gcp", "<cmd> GitConflictPrevConflict <CR>", { desc = "Git conflict preview conflict"})
|
||||
map("n", "<leader>gcn", "<cmd> GitConflictNextConflict <CR>", { desc = "Git conflict next conflict"})
|
||||
map({ "n", "i", "v" }, "<C-s>", "<cmd> w <cr>")
|
||||
map("i", "jk", "<esc>")
|
||||
map("n", "<leader>gr", "<cmd> Gitsigns reset_hunk <cr>", { desc = "Reset hunk" })
|
||||
map("n", "<leader>gp", "<cmd> Gitsigns preview_hunk <cr>", { desc = "See preview hunk" })
|
||||
map("n", "<leader>gd", "<cmd> Gitsigns diffthis <cr>", { desc = "See diff" })
|
||||
map("n", "<leader>gco", "<cmd> GitConflictChooseOurs <cr>", { desc = "Git conflict ours" })
|
||||
map("n", "<leader>gct", "<cmd> GitConflictChooseTheirs <cr>", { desc = "Git conflict theirs" })
|
||||
map("n", "<leader>gcb", "<cmd> GitConflictChooseBoth <cr>", { desc = "Git conflict both" })
|
||||
map("n", "<leader>gc0", "<cmd> GitConflictChooseNone <cr>", { desc = "Git conflict none" })
|
||||
map("n", "<leader>gcp", "<cmd> GitConflictPrevConflict <cr>", { desc = "Git conflict preview conflict" })
|
||||
map("n", "<leader>gcn", "<cmd> GitConflictNextConflict <cr>", { desc = "Git conflict next conflict" })
|
||||
map({ "n", "i", "v" }, "<C-s>", "<cmd> w <cr>", { desc = "Save" })
|
||||
map({ "n", "i", "v" }, "<C-x>", "<cmd> qall <cr>", { desc = "Quit" })
|
||||
map({ "n", "i", "v" }, "<C-X>", "<cmd> qall! <cr>", { desc = "Force quit" })
|
||||
|
|
Loading…
Reference in a new issue