New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

coc-discord-rpc

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

coc-discord-rpc

An awesome coc-extension to get Discord Rich Presence integration with NeoVim.

  • 3.0.8
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
22
increased by214.29%
Maintainers
1
Weekly downloads
 
Created
Source

Icon

😎 An awesome and fully customizable coc-extension to get Discord Rich Presence integration with NeoVim.


Remember to 🌟 this Github if you 💖 it.

For something in between a dakyskye/coc-cord, iCrawl/discord-vscode and a Satoqz/vscode-discord.

This may not be the best coc-extension, but it is a coc-extension. 😁

📌 Features

  • Shows what you're working on in NeoVim
  • Shows the amount of problems in your workspace
  • Shows the number of lines in your file and which line you're editing
  • Respects Discords 15sec limit when it comes to updating your status
  • Support for over 130+ of the most popular languages
  • Enable/Disable RPC for individual workspaces
  • Enable/Disable RPC startup message
  • coc-explorer support
  • Custom string support

All texts is fully customizable using variables and a multitude of config options

a1 a2 a3 a4

📥 Installation

Prerequisites

  • NeoVim - hyperextensible Vim-based text editor
  • coc.nvim - Intellisense engine for Vim8 & Neovim

Install

:CocInstall coc-discord-rpc

🤖 Commands

CommandDescription
rpc.disconnectDisconnects you from Discord Gateway
rpc.reconnectReconnects you to Discord Gateway
rpc.versionReturns extension's version
rpc.enableEnables RPC in the current workspace
rpc.disableDisables RPC in the current workspace

🔧 Settings

rpc.id

Application ID. Change only if you known exactly what you're doing.

Default: 768090036633206815

rpc.enabled

Controls if the Discord Presence should show across all workspaces.

Default: true

rpc.hideStartupMessage

Controls whether the RPC should show the startup message.

Default: false

rpc.ignoreWorkspaces

List of patterns to match workspace names that should prevent the extension from starting.

Default: []

rpc.workspaceElapsedTime

Controls if the RPC should display elapsed time for a workspace or a single file.

Default: false

rpc.detailsEditing

Custom string for the details section of the rich presence.

Default: {workspace} {problems}

  • {null} will be replaced with an empty space
  • {filename} will be replaced with the current file name
  • {workspace} will be replaced with the current workspace name, if any
  • {currentcolumn} will get replaced with the current column of the current line
  • {currentline} will get replaced with the current line number
  • {totallines} will get replaced with the total line number
  • {problems} will be replaced with the count of problems (warnings, errors) present in your workspace.
rpc.detailsInExplorer

Custom string for the details section of the rich presence when browsing the explorer.

Default: Workspace: {workspace}

  • {null} will be replaced with an empty space
  • {filename} will be replaced with the current file name
  • {workspace} will be replaced with the current workspace name, if any
  • {currentcolumn} will get replaced with the current column of the current line
  • {currentline} will get replaced with the current line number
  • {totallines} will get replaced with the total line number
  • {problems} will be replaced with the count of problems (warnings, errors) present in your workspace.
rpc.detailsIdle

Custom string for the details section of the rich presence when idling.

Default: Idling

  • {null} will be replaced with an empty space.
rpc.detailsIdleInExplorer

Custom string for the details section of the rich presence when idling browsing the explorer.

Default: Idling

  • {null} will be replaced with an empty space.
rpc.lowerDetailsEditing

Custom string for the state section of the rich presence.

Default: Working on {filename}:{currentline}:{currentcolumn}

  • {null} will be replaced with an empty space
  • {filename} will be replaced with the current file name
  • {workspace} will be replaced with the current workspace name, if any
  • {currentcolumn} will get replaced with the current column of the current line
  • {currentline} will get replaced with the current line number
  • {totallines} will get replaced with the total line number
  • {problems} will be replaced with the count of problems (warnings, errors) present in your workspace.
rpc.lowerDetailsInExplorer

Custom string for the state section of the rich presence when browsing the explorer.

Default: In explorer

  • {null} will be replaced with an empty space
  • {filename} will be replaced with the current file name
  • {workspace} will be replaced with the current workspace name, if any
  • {currentcolumn} will get replaced with the current column of the current line
  • {currentline} will get replaced with the current line number
  • {totallines} will get replaced with the total line number
  • {problems} will be replaced with the count of problems (warnings, errors) present in your workspace.
rpc.lowerDetailsIdle

Custom string for the state section of the rich presence when idling.

Default: Idling

  • {null} will be replaced with an empty space.
rpc.lowerDetailsIdleInExplorer

Custom string for the state section of the rich presence when idling browsing the explorer.

Default: Idling

  • {null} will be replaced with an empty space.
rpc.largeImage

Custom string for the largeImageText section of the rich presence.

Default: Editing a {LANG} file

  • {lang} will be replaced with the lowercased language ID
  • {Lang} will be replaced with the language ID, first letter being uppercase
  • {LANG} will be replaced with the uppercased language ID.
rpc.largeImageInExplorer

Custom string for the largeImageText section of the rich presence when browsing the explorer.

Default: In explorer

rpc.largeImageIdle

Custom string for the largeImageText section of the rich presence when idling.

Default: Idling

rpc.smallImage

Custom string for the smallImageText section of the rich presence.

Default: {appname}

  • {appname} will get replaced with NeoVim text.
rpc.showProblems

Controls if the RPC should show the count of problems (warnings, errors) present in your workspace.

Default: true

rpc.problemsText

Custom string of the text displaying the amount of problems in your workspace.

Default: - {count} problems found

  • {count} will be replaced by the respective amount of problems.

👨‍💻 Contributing

To contribute to this repository, feel free to create a new fork of the repository and submit a pull request.

  1. Fork / Clone and select the main branch.
  2. Create a new branch in your fork.
  3. Make your changes.
  4. Commit your changes, and push them.
  5. Submit a Pull Request here!

📋 License

This project is licensed under the MIT License - see the LICENSE file for details.

✨ Contributors

Thanks goes to these wonderful people (emoji key):


Narcis B.

💻 📖 🎨 🤔 🚇 🚧 🔌 📢 💡

This project follows the all-contributors specification. Contributions of any kind welcome!

Keywords

FAQs

Package last updated on 10 Dec 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc