Home

Awesome

About

Syntax highlighting and indentation for the RIDE language.

Installation

Using vim-plug:

:Plug 'rosmanov/vim-ride'
:PlugInstall

Alternatively, copy the following directories to the vim configuration directory (usually ~/.vim/):

Code Completion and Linting

The plugin itself doesn't support code completion and linting, but these can be configured as follows:

  1. Install Coc plugin.
  2. Install VS Code extension, e.g.:
# npm install -g '@waves/ride-language-server'
  1. Open CoC configuration: :CocConfig and put a path to the language server launcher (node_modules/@waves/ride-language-server/main.js) as follows:
{
    "languageserver": {
        "ride": {
            "args": [ "--node-ipc" ],
            "execArgv": [ "--nolazy" ],
            "filetypes": [ "ride" ],
            "initializationOptions": {},
            "module": "/usr/lib64/node_modules/@waves/ride-language-server/main.js",
            "settings": { "validate": true },
            "trace.server": "verbose"
        }
    }
}
  1. Restart (Neo)Vim or run :CocRestart.

Notes

mkdir -p $HOME/.vim/
ln -s $HOME/.config/nvim/coc-settings.json $HOME/.vim/

Screencast

asciicast