fix lua path matching again

This commit is contained in:
kiyan42
2020-06-01 16:06:23 +02:00
parent 5b69702a52
commit df0c522a81
3 changed files with 12 additions and 10 deletions

View File

@@ -7,9 +7,7 @@ local luv = vim.loop
local M = {}
local function path_to_matching_str(path)
return path:gsub('(%-)', '(%%-)'):gsub('(%.)', '(%%.)')
end
local path_to_matching_str = require'lib.utils'.path_to_matching_str
local function dir_new(cwd, name)
local absolute_path = cwd..'/'..name