Skip to content

Commit

Permalink
complete-filename: include '{' in leading delimiter pattern
Browse files Browse the repository at this point in the history
This allows to complete file names in latex code (e.g. `\include{foo}`).
  • Loading branch information
fischerling committed Dec 14, 2023
1 parent 133a6f4 commit c4a8478
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/plugins/complete-filename.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c4a8478

Please sign in to comment.