Configuration

From Yzis Wiki

Jump to: navigation, search

Configuration files

  • ~/.yzis/yzis.conf : ini-style file to define options at startup [This file will be obsoleted soon, prefer init.lua]
  • ~/.yzis/init.lua : this file is parsed during startup, any option (except syntax highlighting) can be set there or you can define your own functions there
  • ~/.yzis/hl.lua : this file is specific to syntax highlighting customization (this is a limitation of our code that will be changed in the future, this file will be dropped some day)


You can add your own Lua scripts into ~/.yzis/scripts/
You can also add your own indent plugins into ~/.yzis/scripts/indent/


Configuring Syntax Highlighting

Customisations can be put in ~/.yzis/hl.lua, this is a Lua script that is read at startup.
You should only put in this file commands like :

 highlight("C++ Comments bg=blue fg=red")

Supported options :

 bg=a_color (background)
 selfg=a_color (selected foreground color)
 selbg=a_color (selected background color)
 (no)italic
 (no)bold
 (no)underline
 (no)strikeout