mirror of
https://codeberg.org/FelipeLema/cmp-async-path
synced 2025-05-10 19:58:38 +00:00
Merge pull request #27 from marcushwz/main
Fix path completions break after second /
This commit is contained in:
commit
e1a6916170
@ -1,7 +1,7 @@
|
||||
local cmp = require'cmp'
|
||||
|
||||
local NAME_REGEX = '\\%([^/\\\\:\\*?<>\'"`\\|]\\)'
|
||||
local PATH_REGEX = vim.regex(([[\%(PAT\+\)*\zePAT*$]]):gsub('PAT', NAME_REGEX))
|
||||
local PATH_REGEX = vim.regex(([[\%(/PAT\+\)*/\zePAT*$]]):gsub('PAT', NAME_REGEX))
|
||||
|
||||
local source = {}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user