Merge pull request #27 from marcushwz/main

Fix path completions break after second /
This commit is contained in:
hrsh7th 2021-12-18 23:24:02 +09:00 committed by GitHub
commit e1a6916170
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 = {}