Skip to content
Jie Meng edited this page Aug 20, 2017 · 4 revisions

When Lunar startup first time, a lunar.cfg file under the app directory would generate if there is not one.

This is the config file of Lunar which you don't need to care about most of the time.

AutoCompletion.Threshold

Default value is 2. That means when you type 2 characters in Editor, auto-completion list would show up.

AutoCompletion.WordTip

Word tip switch.

1 enable, 0 disabled. Default is 1.

It can add word you typed before in current document to auto-completion list if enabled.

Extension.Func.FileFilter

File filter (show in open/save dialogs) function defined in extension.lua, do not change it.

Extension.Func.IsLegalFile

Legal file check function defined in extension.lua, do not change it.

Extension.Func.ParseFileType

Parse file type function defined in extension.lua, do not change it.

Font.Size

Font size of editor, change font type in Lunar would change the value here.

Font.Type

Font type of editor, change font size in Lunar would change the value here.

Log.Enable

Set 1 or 0 to enable or disable internal log of Lunar.

Lunar would send log to udp port defined in Log.SockPort.

Lunar log would give you detailed information of auto-completion apis prepared. Use it when you write plugins, that would be great help.

Use function "sendLog(message)" or "sendLog(message, ip, port)" in plugin scripts to give you more information.

Log.SockPort

Lunar log send-to udp port, default is 9966.

MainWindow.Height

Record the Lunar window height when close, you do not need to change it.

MainWindow.Width

Record the Lunar window width when close, you do not need to change it.

Path.RecentProject

Record the recent opened project path.

Path.RecentProject.Count

The maximum number of recent project path can record.