mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
test: remove penlight usage
This commit is contained in:
parent
bfb28b62da
commit
3a3ec37260
@ -3,7 +3,6 @@ local shared = vim
|
||||
local assert = require('luassert')
|
||||
local busted = require('busted')
|
||||
local luv = require('luv')
|
||||
local relpath = require('pl.path').relpath
|
||||
local Paths = require('test.cmakeconfig.paths')
|
||||
|
||||
assert:set_parameter('TableFormatLevel', 100)
|
||||
@ -21,6 +20,12 @@ local module = {
|
||||
REMOVE_THIS = {},
|
||||
}
|
||||
|
||||
local function relpath(p)
|
||||
p = vim.fs.normalize(p)
|
||||
local cwd = luv.cwd()
|
||||
return p:gsub("^" .. cwd)
|
||||
end
|
||||
|
||||
function module.isdir(path)
|
||||
if not path then
|
||||
return false
|
||||
|
Loading…
Reference in New Issue
Block a user