vis

a vi-like editor based on Plan 9's structural regular expressions

git clone https://9o.is/git/vis.git

commit f3b2cb1bbaf1b37b8bc008b38f85dfd718c68374
parent 992172da6ccc45deb4e30b0f8f1345a90bfba513
Author: Florian Fischer <florian.fischer@muhq.space>
Date:   Thu, 14 Dec 2023 12:02:37 +0100

complete-filename: include '{' in leading delimiter pattern

This allows to complete file names in latex code (e.g. `\include{foo}`).

Diffstat:
Mlua/plugins/complete-filename.lua | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lua/plugins/complete-filename.lua b/lua/plugins/complete-filename.lua @@ -13,7 +13,7 @@ local complete_filename = function(expand) if not prefix then return end -- Strip leading delimiters for some progamming languages - local _, j = prefix:find("[[(<'\"]+") + local _, j = prefix:find("[{[(<'\"]+") if not expand and j then prefix = prefix:sub(j + 1) end if prefix:match("^%s*$") then