-- Keymaps are automatically loaded on the VeryLazy event -- Default keymaps that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/keymaps.lua -- Add any additional keymaps here local map = vim.keymap.set -- I don't want help with F1 map({ "i", "n", "c", "v" }, "", "", { remap = false }) -- restore abbreviation expansion in addition to undo break -- (see https://github.com/LazyVim/LazyVim/discussions/5967#discussioncomment-12859255) map("i", ",", ",u") map("i", ".", ".u") map("i", ";", ";u") local function toggle_completion() local c = vim.b.completion if c == nil then c = true end c = (c == nil and false or not c) vim.b.completion = c vim.notify("Completion turned " .. (c and "on" or "off")) end map({ "n", "v", "o" }, "cc", toggle_completion, { desc = "Toggle completion" })