Choose your language/Выбери свой язык:
- English/Русский
- Name
- Short Description
- Long Description
- Screenshoots
- Dependencies
- How-to install
- How-to use
- Bugs
- Contributing
- Alternate repository
gealubi stands for: geany luacheck bindings
Geanylua event script for auto popup annotations with described errors on each line where problem ocurrs.
Event script (when you save document) for geanylua plugin, for Geany IDE source code editor. Script for lua language developers. Useful for printing luacheck's warnings text directly into the code window by creating annotation box under problematic lines.
$ sudo xbps-install -Su geany
$ sudo xbps-install -Su geany-plugins-extra
- Official site: geany.org
- geany-2.0_setup.exe
- geany-plugins-2.0_setup.exe
- Official site: geany.org
- geany-2.0_osx.dmg
- Plugins included.
- geany-2.0_osx_arm64.dmg
- Not sure about plugins. Let me know in Issues, ok?
- Do not forget enable the geanylua plugin.
Tools > Plugin Manager > Lua Script
- Voidlinux OS:
- Lua
$ sudo xbps-install -Su lua53
- Luarocks and Luacheck(with dependencies)
$ sudo xbps-install -Su luarocks-lua53
$ luarocks --local install luacheck
- luacheck binary must be in:
/home/username/.luarocks/bin/luacheck
or specify absolute path to your luacheck linter app by editing file 'saved.lua' and changing path in variable:
gealubi.unix_luacheck_path = [[/home/yeleaf/.luarocks/bin/luacheck2]]
This variable have higher priority. If gealubi script not find app from variable above it will check for default path.
- Copy script 'saved.lua' into:
/home/username/.config/geany/plugins/geanylua/events/
- Copy script 'gealubi.lua' into:
/home/username/.config/geany/plugins/geanylua/support/
- If folders (events and support) not exist. Just create them.
- (Optional step) Create '.luacheckrc' file and put it on:
/home/username/.config/luacheck/
All steps IMPORTANT if 'Optional step' not specified.
- Luacheck app: For Windows there is single-file 64-bit binary distribution, bundling Lua 5.3.4, Luacheck, LuaFileSystem, and LuaLanes using: LuaStatic:
- download binary
- Edit the 'saved.lua' script by finding line:
gealubi.windows_luacheck_path = [["C:\Program Files\Lua\luacheck.exe"]]
And paste absolute path to your luacheck.exe between square brackets (with preserved quotes if spaces in path exist).
- Copy script 'saved.lua' into:
C:\users\username\AppData\Roaming\geany\plugins\geanylua\events\
- Copy script 'gealubi.lua' into:
C:\users\username\AppData\Roaming\geany\plugins\geanylua\support\
- (Optional step) Create '.luacheckrc' file and put it on:
C:\users\username\AppData\Local\Luacheck\
Need your help here. Tell me in Issues or Pull Request.
- Try to find luacheck linter app here: link
- For file 'saved.lua'. Find geanylua script directory and submit that path in Issues or Pull Request.
- For file 'gealubi.lua'. Find geanylua script directory and submit that path in Issues or Pull Request.
- If you found correct path for gealubi plugin scripts. You can edit script 'saved.lua' by finding line:
gealubi.unix_luacheck_path = [[/home/yeleaf/.luarocks/bin/luacheck2]]
and pasting absolute path to your luacheck linter application.
- (Optional step) Create '.luacheckrc' configurational file. how-to create link and paste it at:
~/Library/Application Support/Luacheck/.luacheckrc
Default mac-os /OS X path.
- Or paste absolute path to your custom luacheck config file in file 'saved.lua' in line containing:
gealubi.custom_luacheckrc_config_path = [[C:\.luacheckrc2]]
- Note by author: MacOS users can work with this plugin if you figure out where to paste gealubi scripts and find luacheck app for your OS. Fell free to contribute in Issues or Pull Request. Together we finding a way.
Just write your lua script as usual and then press Ctrl+S (save). After saving the lua file, script run luacheck on your file, extracts warnings (and errors) and draws it's in boxes under problematic lines.
If you found something, let me know in Issues, ok?
Feel free to contribute bugs, suggestion, ideas or more optimized lua code in 'Issues' or Pull Request.
Using codeberg.org ?