-- 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 -- -- vim.api.nvim_set_keymap("i", "jj", "", { noremap = false }) local wk = require("which-key") wk.add({ { "N", group = "Notes" }, { "Nt", ":Journal", desc = "Today" }, { "C", group = "ChatGPT" }, { "CC", ":ChatGPT", desc = "ChatGPT" }, { "Ce", "ChatGPTEditWithInstruction", desc = "Edit with instruction", mode = { "n", "v" } }, { "Cg", "ChatGPTRun grammar_correction", desc = "Grammar Correction", mode = { "n", "v" } }, -- t = { "ChatGPTRun translate", "Translate", mode = { "n", "v" } }, -- k = { "ChatGPTRun keywords", "Keywords", mode = { "n", "v" } }, -- d = { "ChatGPTRun docstring", "Docstring", mode = { "n", "v" } }, -- a = { "ChatGPTRun add_tests", "Add Tests", mode = { "n", "v" } }, { "Co", "ChatGPTRun optimize_code", desc = "Optimize Code", mode = { "n", "v" } }, -- s = { "ChatGPTRun summarize", "Summarize", mode = { "n", "v" } }, { "Cf", "ChatGPTRun fix_bugs", desc = "Fix Bugs", mode = { "n", "v" } }, -- x = { "ChatGPTRun explain_code", "Explain Code", mode = { "n", "v" } }, -- r = { "ChatGPTRun roxygen_edit", "Roxygen Edit", mode = { "n", "v" } }, -- l = { "ChatGPTRun code_readability_analysis", "Code Readability Analysis", mode = { "n", "v" } }, })