mirror of https://github.com/hrsh7th/cmp-path
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