vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit 2b929beb3f35d9b39e22fde1e1aec7a5b35275fc parent ad50f5f06c82eb0fd498091ae887ca055d1e2c84 Author: Randy Palamar <randy@rnpnr.xyz> Date: Mon, 6 May 2024 09:26:51 -0600 lua: filetype: properly search for lexer path fixes #1190: Missing mail.lua lexer Diffstat:
| M | lua/plugins/filetype.lua | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lua/plugins/filetype.lua b/lua/plugins/filetype.lua @@ -507,9 +507,9 @@ vis.events.subscribe(vis.events.WIN_OPEN, function(win) vis:command(cmd) end if not vis.lexers.property then return end - local path = vis.lexers.property['scintillua.lexers'] + local path = vis.lexers.property['scintillua.lexers']:gsub(';', '/?.lua;') local lexname = filetype.alt_name or syntax - local lexpath = package.searchpath('lexers/'..lexname, path) + local lexpath = package.searchpath(lexname, path) if lexpath ~= nil then win:set_syntax(lexname) else