From b73d4104d7baeb6867d65037a8f1b523d1e2f08b Mon Sep 17 00:00:00 2001 From: Anas Elgarhy Date: Sun, 17 Jul 2022 14:48:28 +0200 Subject: [PATCH] =?UTF-8?q?Add=20presence=20plugin=20=F0=9F=A5=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/andweeb/presence.nvim --- .config/nvim/lua/custom/init.lua | 19 +++++++++++++++++++ .config/nvim/lua/custom/plugins/init.lua | 1 + 2 files changed, 20 insertions(+) diff --git a/.config/nvim/lua/custom/init.lua b/.config/nvim/lua/custom/init.lua index 9fd53af..07dd809 100644 --- a/.config/nvim/lua/custom/init.lua +++ b/.config/nvim/lua/custom/init.lua @@ -7,3 +7,22 @@ vim.api.nvim_set_keymap("i", "", 'copilot#Accept("")', { silent = true, -- Github copilot config vim.g.copilot_no_tab_map = true +-- The setup config table shows all available config options with their default values: +require("presence"):setup({ + -- General options + auto_update = true, -- Update activity based on autocmd events (if `false`, map or manually execute `:lua package.loaded.presence:update()`) + neovim_image_text = "The One True Text Editor", -- Text displayed when hovered over the Neovim image + debounce_timeout = 10, -- 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 = {}, -- A list of strings or Lua patterns that disable Rich Presence if the current file name, path, or workspace matches + buttons = true, -- Configure Rich Presence button(s), either a boolean to enable/disable, a static table (`{{ label = "