rasi.vim icon indicating copy to clipboard operation
rasi.vim copied to clipboard

Rofi config syntax highlighting for vim

rasi.vim - rofi config syntax highlighting for vim

Add syntax highlighting support for rasi config file

The syntax is based on the rofi-theme man page. (v1.7.2)

image

With tree-sitter highlighting: Tree-sitter showcase

Colorscheme: kanagawa.nvim

Dependencies

Optionnal

Treesitter

A parser for rasi has also been created for neovim users at Fymyte/tree-sitter-rasi. The parser doesn't add much highlighting but may recognize some structure that are impossible to express through regex. (particularly nested var, env ...)

See wiki for integration.

Installation

vim-plug

Plug 'Fymyte/rasi.vim'

Packer

use {
  'Fymyte/rasi.vim',
  ft = 'rasi',
}

Thanks

  • @CantoroMC for base plugin. (repository has been deleted)