diff --git a/.config/nvim/after/plugin/chatgpt.lua b/.config/nvim/after/plugin/chatgpt.lua new file mode 100644 index 0000000..3f9a0a3 --- /dev/null +++ b/.config/nvim/after/plugin/chatgpt.lua @@ -0,0 +1,31 @@ +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 }) diff --git a/.config/nvim/after/plugin/presence.lua b/.config/nvim/after/plugin/presence.lua index f9f50b0..9f7227d 100644 --- a/.config/nvim/after/plugin/presence.lua +++ b/.config/nvim/after/plugin/presence.lua @@ -9,9 +9,16 @@ require("presence").setup({ log_level = nil, -- Log messages at or above this level (one of the following: "debug", "info", "warn", "error") debounce_timeout = 1, -- Number of seconds to debounce events (or calls to `:lua package.loaded.presence:update(, true)`) enable_line_number = false, -- Displays the current line number instead of the current project - blacklist = {"glua-atas", "toggleterm"},-- A list of strings or Lua patterns that disable Rich Presence if the current file name, path, or workspace matches + blacklist = { -- A list of strings or Lua patterns that disable Rich Presence if the current file name, path, or workspace matches + "glua-atas", + "glua-regulamento", + "toggleterm", + "curriculum-vitae", + "Nextcloud", + }, buttons = true, -- Configure Rich Presence button(s), either a boolean to enable/disable, a static table (`{{ label = "