From e632306af10f28a662d53bafed85a8cf8b4f63b7 Mon Sep 17 00:00:00 2001 From: Andrew Kwon Date: Tue, 10 Aug 2021 19:51:57 -0700 Subject: [PATCH] Support plain strings in blacklist config --- README.md | 6 +++--- lua/presence/init.lua | 18 +++++++++++------- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 851cde7..d47dd07 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ > Discord [Rich Presence](https://discord.com/rich-presence) plugin for [Neovim](https://neovim.io) -https://user-images.githubusercontent.com/10726590/128818164-43e56722-9afe-4051-8790-b04769abc188.mov +demo.gif ## Features * Light and unobtrusive @@ -40,7 +40,7 @@ require("presence"):setup({ 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 match + 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 = "