1
0
Fork 0
mirror of https://github.com/jiriks74/presence.nvim synced 2025-07-24 17:38:48 +02:00

Add setup option to configure custom file assets

Resolve #11
This commit is contained in:
Andrew Kwon 2022-01-15 22:47:49 -08:00
parent dca3daa25d
commit 6a3828167c
3 changed files with 22 additions and 3 deletions

View file

@ -43,6 +43,7 @@ require("presence"):setup({
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 = "<label>", url = "<url>" }, ...}`, or a function(buffer: string, repo_url: string|nil): table)
file_assets = {}, -- Custom file asset definitions keyed by file names and extensions (see default config at `lua/presence/file_assets.lua` for reference)
-- Rich Presence text options
editing_text = "Editing %s", -- Format string rendered when an editable file is loaded in the buffer (either string or function(filename: string): string)