diff options
| author | Randy Palamar <palamar@ualberta.ca> | 2023-08-27 10:08:19 -0600 |
|---|---|---|
| committer | Randy Palamar <palamar@ualberta.ca> | 2023-08-27 10:12:47 -0600 |
| commit | ae450f738c0ed07b3b892449463c817a2125c2e7 (patch) | |
| tree | 92d13eebe21ad1ee19002c027781acb0ce3dcafc /lua/plugins/filetype.lua | |
| parent | 0ec372eb2b213292a610d9b64e8d1d37e9597c9a (diff) | |
| download | vis-ae450f738c0ed07b3b892449463c817a2125c2e7.tar.gz vis-ae450f738c0ed07b3b892449463c817a2125c2e7.tar.xz | |
lua: make sure lpeg is in fact optional
fixes #1119: lua: lpeg module isn't actually optional
Diffstat (limited to 'lua/plugins/filetype.lua')
| -rw-r--r-- | lua/plugins/filetype.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lua/plugins/filetype.lua b/lua/plugins/filetype.lua index a5ab056..074b7f2 100644 --- a/lua/plugins/filetype.lua +++ b/lua/plugins/filetype.lua @@ -500,6 +500,7 @@ vis.events.subscribe(vis.events.WIN_OPEN, function(win) for _, cmd in pairs(filetype.cmd or {}) do vis:command(cmd) end + if not vis.lexers.property then return end local path = vis.lexers.property['lexer.lpeg.home']:gsub(';', '/?.lua;') .. '/?.lua' local lexpath = package.searchpath('lexers/'..syntax, path) if lexpath ~= nil then |
