---@type MappingsTable require "nvchad.mappings" local map = vim.keymap.set -- General map("n", ";", ":", { desc = "enter command mode", nowait = true }) -- Format with conform map("n", "fm", function() require("conform").format() end, { desc = "formatting" }) -- Indentation in visual mode map("v", ">", ">gv", { desc = "indent" }) -- Move selection up/down with K/J in visual mode map("v", "J", ":m '>+1gv=gv", { desc = "move selection down" }) map("v", "K", ":m '<-2gv=gv", { desc = "move selection up" }) -- Copilot accept in insert mode map("i", "", function() vim.fn.feedkeys(vim.fn["copilot#Accept"](), "") end, { desc = "Copilot Accept", replace_keycodes = true, nowait = true, silent = true, expr = true, noremap = true })