From dbf96ae166f56d7658d927c5114c1cae4943048f Mon Sep 17 00:00:00 2001 From: vyfor Date: Sat, 18 Jan 2025 01:48:27 +0500 Subject: [PATCH] feat(cord-nvim)!: update to v2 --- lua/astrocommunity/media/cord-nvim/README.md | 2 +- lua/astrocommunity/media/cord-nvim/init.lua | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lua/astrocommunity/media/cord-nvim/README.md b/lua/astrocommunity/media/cord-nvim/README.md index 96eebc167..cb0d34910 100644 --- a/lua/astrocommunity/media/cord-nvim/README.md +++ b/lua/astrocommunity/media/cord-nvim/README.md @@ -1,5 +1,5 @@ # cord.nvim -🚀 Discord Rich Presence plugin for Neovim written in Rust +🚀 Discord Rich Presence for Neovim **Repository:** diff --git a/lua/astrocommunity/media/cord-nvim/init.lua b/lua/astrocommunity/media/cord-nvim/init.lua index addbfa618..a14634748 100644 --- a/lua/astrocommunity/media/cord-nvim/init.lua +++ b/lua/astrocommunity/media/cord-nvim/init.lua @@ -1,6 +1,6 @@ return { "vyfor/cord.nvim", - build = vim.fn.has "win32" == 0 and "./build" or ".\\build", + build = ":Cord update", event = "VeryLazy", opts = { editor = { @@ -8,7 +8,7 @@ return { tooltip = "An aesthetically pleasing and feature-rich Neovim configuration", }, buttons = { - { label = "View Repository", url = "git" }, + { label = "View Repository", url = function(opts) return opts.repo_url end }, { label = "View AstroNvim", url = "https://astronvim.com" }, }, },