require "nvchad.mappings" -- add yours here local map = vim.keymap.set map("n", ";", ":", { desc = "CMD enter command mode" }) map("n", "gd", vim.lsp.buf.definition, { desc = "Go to definition" }) local builtin = require "telescope.builtin" map("n", "gD", builtin.lsp_definitions, { desc = "Go to definitions" }) map("n", "grr", builtin.lsp_references, { desc = "Go to references" }) map({ "n", "v" }, "ge", ":Gen") map("n", "gl", "lua vim.lsp.buf.code_action()", { noremap = true, silent = true }) -- map({ "n", "i", "v" }, "", " w ") -- Diagnostics map("n", "da", ":lua vim.lsp.buf.code_action()", { desc = "Code actions" }) map("n", "dh", ":lua vim.diagnostic.open_float()", { desc = "Show diagnostics" }) map("n", "dj", ":lua vim.diagnostic.goto_next()", { desc = "Go to next" }) map("n", "dk", ":lua vim.diagnostic.goto_prev()", { desc = "Go to previous" }) -- P paste with -- global marks -- "{register}