Crates.io | cord-nvim |
lib.rs | cord-nvim |
version | |
source | src |
created_at | 2025-01-04 16:30:29.991388+00 |
updated_at | 2025-05-20 18:49:37.363839+00 |
description | 🚀 The most extensible Discord Rich Presence plugin for Neovim, powered by Rust. |
homepage | |
repository | https://github.com/vyfor/cord.nvim |
max_upload_size | |
id | 1504045 |
Cargo.toml error: | TOML parse error at line 19, column 1 | 19 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
[!IMPORTANT] Cord no longer requires Rust to be installed. Rust component will be automatically downloaded from GitHub Releases.
🌐 Client-Server Design — Handles multiple Neovim instances with a single connection to Discord.
⚡ Performance in Mind — Lightweight, dependency-free, with blazingly-fast startup.
🚀 Event-Driven Architecture — Instant presence updates with zero delays.
🎨 Customizable Templates — Dynamic string templates with custom variables.
🔧 Unmatched Configurability — Function-based configuration for infinite customization possibilities.
🧠 Automated State Handling — Automatically manages activities across all instances.
💤 Smart Idle Detection — Identifies idle sessions and switches to the most recent non-idle session.
🛠️ Built-in Git Integration — Detects repositories and workspaces based on VCS files without relying on command-line tools.
🗃️ Custom Assets — Extendable with fully customizable assets for any file/buffer type.
⚙️ Robust User Commands - Quickly manage Cord and its features through user commands and easily create your own keybindings.
🔌 Plugin System — Extendable with custom plugins, with a plethora of built-in ones out of the box.
📦 Wide Compatibility - Compatible with various Discord installations (Snap, Flatpak) and able to work inside WSL and Discord in browser.
🌍 Cross-Platform — Supports Windows, Linux, macOS, and FreeBSD.
🌸 Rich Icon Collection — Features 120+ uniquely designed themed icons for 200+ file types and plugins.
🔁 Automatic Reconnection — Able to reconnect to Discord if the connection is lost.
For most users, the quickest way to get started is by using lazy.nvim:
{
'vyfor/cord.nvim',
build = ':Cord update',
-- opts = {}
}
Cord requires the server executables to be present. To get it, you can either:
:Cord update [fetch]
(async, recommended). Make sure you have curl
installed.nvim-data-dir/cord/bin
use {
'vyfor/cord.nvim',
run = ':Cord update',
-- config = function()
-- require('cord').setup {}
-- end
}
Cord is available on LuaRocks.
:Rocks install cord.nvim
Invoke :Cord update
whenever the plugin is updated.
Unix:
git clone https://github.com/vyfor/cord.nvim ~/.local/share/nvim/site/pack/plugins/start/cord.nvim
Windows:
git clone https://github.com/vyfor/cord.nvim $LOCALAPPDATA/nvim-data/site/pack/plugins/start/cord.nvim
Invoke :Cord update
whenever the plugin is updated.
Invoke :Cord update
whenever the plugin is updated.
Cord boasts over 120 meticulously crafted icons for languages and tools, available in distinct themes to match your style.
👉 Explore the Icon Showcase: vyfor/icons
Cord currently offers three themes:
Each theme includes multiple flavors, typically
dark
,light
, andaccent
. Choose your theme in thedisplay
configuration option. More themes are coming soon!
Full documentation is available in the Wiki:
All breaking changes will be announced in GitHub Discussions.
We welcome contributions to make Cord even better!
I'm the sole maintainer of cord.nvim and dedicate much of my free time to this project. If you find Cord helpful, you can show your support by giving the repo a star or sponsoring me on GitHub. Every bit of support helps me continue to improve and maintain Cord for everyone. Thank you!
[!NOTE] Make sure you have Rust >= 1.85.0 (nightly) installed.
To build Cord from source, you can run :Cord update build
(async) which will install the server binary from crates.io by running the following command:
cargo install --path . --root path/to/nvim-data-dir/cord --force
Alternatively, you can use cargo b --release
to build the binary, then place it under nvim-data-dir/cord/bin
.
💬 Questions? Post in Discussions or reach me out on Discord: vyfor