mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
test(checkhealth): nested path 'runtimepath' #33034
This commit is contained in:
@@ -0,0 +1,6 @@
|
|||||||
|
return {
|
||||||
|
check = function()
|
||||||
|
vim.health.start('healthy pack')
|
||||||
|
vim.health.ok('healthy ok')
|
||||||
|
end,
|
||||||
|
}
|
@@ -224,6 +224,24 @@ describe('vim.health', function()
|
|||||||
- OK everything is ok
|
- OK everything is ok
|
||||||
]])
|
]])
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
it('&rtp can contain nested path (by packadd)', function()
|
||||||
|
-- re-add to ensure this appears before new nested rtp
|
||||||
|
command([[set runtimepath-=test/functional/fixtures]])
|
||||||
|
command([[set runtimepath+=test/functional/fixtures]])
|
||||||
|
command('set packpath+=test/functional/fixtures')
|
||||||
|
-- set rtp+=test/functional/fixtures/pack/foo/opt/healthy
|
||||||
|
command('packadd healthy')
|
||||||
|
command('checkhealth nest')
|
||||||
|
n.expect([[
|
||||||
|
|
||||||
|
==============================================================================
|
||||||
|
nest: require("nest.health").check()
|
||||||
|
|
||||||
|
healthy pack ~
|
||||||
|
- OK healthy ok
|
||||||
|
]])
|
||||||
|
end)
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user