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/
):
- ftdetect/
- ftplugin/
- indent/
- syntax/
Code Completion and Linting
The plugin itself doesn't support code completion and linting, but these can be configured as follows:
- Install Coc plugin.
- Install VS Code extension, e.g.:
# npm install -g '@waves/ride-language-server'
- 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"
}
}
}
- Restart (Neo)Vim or run
:CocRestart
.
Notes
- The
npm install -g
command requires superuser permissions. You may want to run it viasudo
. - Coc plugin uses different locations for Vim/gVim and NeoVim configuration (see the documentation). You may want to make a symbolic link as follows:
mkdir -p $HOME/.vim/
ln -s $HOME/.config/nvim/coc-settings.json $HOME/.vim/
Screencast