0.0.2 • Published 5 years ago
coc-discord-neovim v0.0.2
coc-discord-neovim
This is a fork of upstream coc-discord
with refactorings and added features.
What Features are Implemented Here
- Rich presences reports that the application being used is Neovim
- Large and small image assets in the rich presence based on the file in the
current buffer.
- Languages reported:
- c, c++, java, typescript, javascript, python, yaml, html, css, php, ruby
- Languages reported:
- Ability to change runtime behaviors based on environment variables.
- Environment variables:
CLIENT_ID
ELAPSE_UPDATE_DURATION
- Environment variables:
- Logging output to
:CocInfo
What Other Features are Planned
- Publish to npm.
- Deriving the project root from
coc
's built-in api. - The ability to ignore showing sensitive projects.
- Thoughts on implementing this, neither solution has obvious merits:
- This can be implemented by having the users edit the
coc-config
. This is not optimal as it is not obvious. - This could also be implemented by importing all of neovim and grabbing global configuration variables from vimrc. This is more user friendly, but makes the install quite a bit larger for a relatively small utilization of the neovim api.
- Thoughts on implementing this, neither solution has obvious merits:
- This can be implemented by having the users edit the
- Setting logging levels (for development purposes).
- Update activity time based on project change or file change.
- Adding a
:h
file?
Running this Repository
- Run neovim.
- Install
coc
via a plugin manager. - From inside of neovim run,
:CocInstall coc-discord-neovim
.
Debugging and Reporting Issues
Code breaks, report issues by opening up a PR with the output of :CocInfo
.
How to Help Development
I will accept most...if not all...PR's. But I do expect your code to run and be bug free. The steps below outline how to setup a development environment.
- Run neovim.
- Clone this repository.
- Build the software by navigating into the repository root and build it with
yarn install
andyarn build
(note:npm install
,npm run build
also works). - Install
coc
via a plugin manager. - From inside of neovim run,
CocInstall coc-discord-neovim
. - Navigate to and delete:
$HOME/.cache/coc/node_modules/coc-discord-neovim
. 5a. If on MacOS, this is located at$HOME/.config/coc/node_modules/coc-discord-neovim
. ln -s <location to this repo> $HOME/.cache/coc/node_modules/coc-discord-neovim
. 6a. If on MacOS,ln -s <location to this repo> $HOME/.config/coc/node_modules/coc-discord-neovim
.- Open or restart Discord.
- Open neovim in the root of the project directory. You are going to use neovim to help develop this plugin right?
Coc
Plugins that Help with Development:
coc-eslint
coc-prettier
coc-tsserver