Diff options
| author | Bryce Kwon <bryce@brycekwon.com> | |
|---|---|---|
| committer | Bryce Kwon <bryce@brycekwon.com> | |
| commit | ||
| parent | ||
| tree | ||
| download | ||
Point the install notes at distribution packages
Debian, Ubuntu, Fedora and Alpine package luaossl, luaposix and lpeg
for the Lua versions they ship, which leaves LuaRocks for the rest.
Scintillua comes as a release zip whose lexers directory is what the
filter looks for, so its steps say where to put that.
Diffstat (limited to 'custom/extensions/syntax-highlight.lua')
| -rw-r--r-- | custom/extensions/syntax-highlight.lua | 23 |
1 file changed, 15 insertions, 8 deletions
diff --git a/custom/extensions/syntax-highlight.lua b/custom/extensions/syntax-highlight.lua index 2928250..eac7387 100644 --- a/custom/extensions/syntax-highlight.lua +++ b/custom/extensions/syntax-highlight.lua @@ -25,18 +25,25 @@ local scintillua_env = "CGIT_SCINTILLUA_PATH" -- Directories probed for the lexers when that variable is not set, tried -- after the directory of $CGIT_CONFIG, so placing or symlinking a scintillua --- directory next to cgitrc is enough for it to be found. The lexers come --- from https://orbitalquark.github.io/scintillua/ and need lpeg, built for --- the Lua cgit is linked against. Forgetting that is the usual reason +-- directory next to cgitrc is enough for it to be found. The lexers are the +-- lexers directory of a release zip from +-- https://github.com/orbitalquark/scintillua/releases and need lpeg, built +-- for the Lua cgit is linked against. Forgetting that is the usual reason -- nothing is coloured. A file is coloured only when Scintillua's detect() --- names its lexer, so an older Scintillua without detect() colours nothing. +-- names its lexer, so a Scintillua older than 6.0, which lacks detect(), +-- colours nothing. -- --- # Debian and Ubuntu +-- # Scintillua, into the first directory below +-- unzip scintillua_*.zip +-- sudo mkdir -p /usr/local/share/scintillua +-- sudo cp -R scintillua/lexers /usr/local/share/scintillua/ +-- +-- # Debian and Ubuntu, for Lua 5.1 to 5.4 and LuaJIT -- sudo apt install lua-lpeg --- # Fedora +-- # Fedora, for Lua 5.4, or lua5.1-lpeg for LuaJIT -- sudo dnf install lua-lpeg --- # Alpine --- sudo apk add lua5.1-lpeg +-- # Alpine, named for the Lua version, 5.1 for LuaJIT +-- sudo apk add lua5.5-lpeg -- # or with LuaRocks, matched to your Lua version -- sudo luarocks --lua-version 5.1 install lpeg -- |
