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