From 80a94eeb8b1663f3c12ed340859e5d71d918b099 Mon Sep 17 00:00:00 2001 From: TiagoRG Date: Mon, 19 Feb 2024 19:35:04 +0000 Subject: [PATCH] Neovim update Signed-off-by: TiagoRG --- .config/nvim/after/plugin/chatgpt.lua | 31 ++ .config/nvim/after/plugin/presence.lua | 11 +- .config/nvim/after/plugin/tabset.lua | 4 +- .config/nvim/lua/tiagorg/packer.lua | 13 + .config/nvim/lua/tiagorg/remap.lua | 3 +- .config/nvim/lua/tiagorg/set.lua | 3 +- .config/nvim/plugin/packer_compiled.lua | 36 +- .config/nvim/snippets/rust.snippets | 252 ++++++++++++++ .config/nvim/snippets/tex.snippets | 427 ++++++++++++++++++++++++ .config/nvim/snippets/vhdl.snippets | 137 ++++++++ 10 files changed, 903 insertions(+), 14 deletions(-) create mode 100644 .config/nvim/after/plugin/chatgpt.lua create mode 100644 .config/nvim/snippets/rust.snippets create mode 100644 .config/nvim/snippets/tex.snippets create mode 100644 .config/nvim/snippets/vhdl.snippets 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 = "