require('chatgpt').setup { api_key_cmd = 'gpg --decrypt /home/tiagorg/.gnupg/openai_key.txt.gpg', chat = { keymaps = { close = "", yank_last = "", yank_last_code = "", scroll_up = "", scroll_down = "", new_session = "", cycle_windows = "", cycle_modes = "", next_message = "", prev_message = "", select_session = "", rename_session = "r", delete_session = "d", draft_message = "", edit_message = "e", delete_message = "d", toggle_settings = "", toggle_sessions = "", toggle_help = "", toggle_message_role = "", toggle_system_role_open = "", stop_generating = "", }, } } vim.keymap.set("n", "gpt", "ChatGPT", { noremap = true, silent = true })