require("which-key").add({ { "c", group = "code" }, { "cd", vim.diagnostic.open_float, name = "diagnostic" }, { "e", Snacks.explorer.open, name = "explorer" }, { "f", group = "find" }, { "ff", Snacks.picker.files, name = "files" }, { "u", group = "ui" }, { "ut", Snacks.picker.colorschemes, name = "colorschemes" }, { "g", group = "goto" }, { "gd", vim.lsp.buf.definition, name = "definition" }, { "gr", Snacks.picker.lsp_references, nowait = true, name = "references" }, }) Snacks.toggle.diagnostics():map("ud") Snacks.toggle.inlay_hints():map("ui")