diff --git a/init.lua b/init.lua index 92c0eb27..2bb1e533 100644 --- a/init.lua +++ b/init.lua @@ -228,6 +228,7 @@ vim.opt.rtp:prepend(lazypath) -- -- NOTE: Here is where you install your plugins. require('lazy').setup({ + 'andweeb/presence.nvim', -- NOTE: Plugins can be added with a link (or for a github repo: 'owner/repo' link). 'tpope/vim-sleuth', -- Detect tabstop and shiftwidth automatically @@ -968,6 +969,30 @@ require('lazy').setup({ }, }) +-- 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 + main_image = 'neovim', -- Main image display (either "neovim" or "file") + client_id = '793271441293967371', -- Use your own Discord application client id (not recommended) + log_level = nil, -- Log messages at or above this level (one of the following: "debug", "info", "warn", "error") + 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 = "