diff options
author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2023-04-14 00:09:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-14 00:09:56 +0200 |
commit | 3a3ec37260592b6c5ab96c4e8f7f96a7b411829f (patch) | |
tree | e37555ddbbc0d3194e69de90ca3399dfdb5421f9 /test/helpers.lua | |
parent | bfb28b62dab756ec76a73506c2070ddf491a0cdd (diff) | |
download | rneovim-3a3ec37260592b6c5ab96c4e8f7f96a7b411829f.tar.gz rneovim-3a3ec37260592b6c5ab96c4e8f7f96a7b411829f.tar.bz2 rneovim-3a3ec37260592b6c5ab96c4e8f7f96a7b411829f.zip |
test: remove penlight usage
Diffstat (limited to 'test/helpers.lua')
-rw-r--r-- | test/helpers.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/helpers.lua b/test/helpers.lua index 94dcf86c4d..34c2036798 100644 --- a/test/helpers.lua +++ b/test/helpers.lua @@ -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 |