diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2023-12-14 12:02:37 +0100 |
|---|---|---|
| committer | Randy Palamar <randy@rnpnr.xyz> | 2023-12-14 07:17:22 -0700 |
| commit | 8ff0bea5ca3976bc3d326f5825abcd1223fed1ec (patch) | |
| tree | 752527ea1f677710dc789eb19ffeee741f36b640 | |
| parent | 5a0fc2307cb5b22bc5cdf73158908f4ebcf61bb6 (diff) | |
| download | vis-8ff0bea5ca3976bc3d326f5825abcd1223fed1ec.tar.gz vis-8ff0bea5ca3976bc3d326f5825abcd1223fed1ec.tar.xz | |
complete-filename: include '{' in leading delimiter pattern
This allows to complete file names in latex code (e.g. `\include{foo}`).
| -rw-r--r-- | lua/plugins/complete-filename.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/plugins/complete-filename.lua b/lua/plugins/complete-filename.lua index 6b842af..e8724b0 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 |
