diff --git a/flake.lock b/flake.lock index 6a0f2e5..b7243c9 100644 --- a/flake.lock +++ b/flake.lock @@ -25,11 +25,11 @@ ] }, "locked": { - "lastModified": 1697611555, - "narHash": "sha256-8nYMduRQfGSQJr2cDMyodsuGlRcJAy0Ko8K4KkjurP8=", + "lastModified": 1697622055, + "narHash": "sha256-t9rwzjlfgCnXDFGH3wsooYfAOA+XqQmgTojhzuNafZ4=", "owner": "nix-community", "repo": "home-manager", - "rev": "05649393ac1f34980a5cf6a6e89de77626c9182b", + "rev": "84fa81c7acb018c3c5a504dcefbc28a182c933c2", "type": "github" }, "original": { diff --git a/nix/users/base/neovim/default.nix b/nix/users/base/neovim/default.nix index 2a8eaf4..8072fd7 100644 --- a/nix/users/base/neovim/default.nix +++ b/nix/users/base/neovim/default.nix @@ -77,6 +77,10 @@ config = toLuaFile ./plugins/transparent.lua; } + { + plugin = vimPlugins.presence-nvim; + config = toLuaFile ./plugins/presence.lua; + } ]; diff --git a/nix/users/base/neovim/plugins/presence.lua b/nix/users/base/neovim/plugins/presence.lua new file mode 100644 index 0000000..bc8c9eb --- /dev/null +++ b/nix/users/base/neovim/plugins/presence.lua @@ -0,0 +1,28 @@ +local status, plugin = pcall(require,'presence') +if not status then + print('Error with plugin: ', plugin) + return +end +plugin.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 = "file", -- 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 = true, -- 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 = "