require "nvchad.mappings" -- add yours here local map = vim.keymap.set local g = vim.g local diag = vim.diagnostic map("n", ";", ":", { desc = "CMD enter command mode" }) map("i", "jk", "") -- map({ "n", "i", "v" }, "", " w ") map("n", "ca", function() vim.lsp.buf.code_action() end, { desc = "LSP code action" }) map("n", "tt", function() require("base46").toggle_transparency() end, { desc = "Toggle transparency" }) map("n", "J", "mzJ`z", { desc = "Concatenate line below cursor but does not move the cursor" }) map("n", "o", ':call append(line("."), repeat([""], v:count1))', { desc = "Insert line below" }) map("n", "O", ':call append(line(".")-1, repeat([""], v:count1))', { desc = "Insert line above" }) map("n", "", "zz") map("n", "", "zz") map("n", "lg", " LazyGit", { desc = "LazyGit" }) -- Visual mode map("v", "J", ":m '>+1gv=gv", { desc = "Move line w/indentation" }) map("v", "K", ":m '<-2gv=gv", { desc = "Move line w/indentation" }) map("v", ">", ">gv", { desc = "indent" }) map("v", "<", "lt", Toggle_diagnostics, { noremap = true, silent = true, desc = "Toggle vim diagnostics" })