From 8ff0bea5ca3976bc3d326f5825abcd1223fed1ec Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Thu, 14 Dec 2023 12:02:37 +0100 Subject: [PATCH] complete-filename: include '{' in leading delimiter pattern This allows to complete file names in latex code (e.g. `\include{foo}`). --- lua/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 index 6b842af23..e8724b069 100644 --- 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