-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: ensure plugin runtime paths are available before rocks initiali…
…ses (#285) * feat: ensure plugin runtime paths are available before rocks initialises * tests(integration): run on all platforms * tests(integration): add test for setting the colorscheme in init.lua * tests(integration): add linux and macos cpath entries * tests(integration): check for success file * tests(integration): tweak colorscheme test --------- Co-authored-by: vhyrro <76052559+vhyrro@users.noreply.github.com>
- Loading branch information
Showing
7 changed files
with
153 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
local done = false | ||
require("rocks.api").install("sweetie.nvim", "2.4.0", function() | ||
vim.uv.sleep(2000) -- Leave time for symlinks to be created | ||
done = true | ||
end) | ||
vim.fn.wait(60000, function() | ||
return done and 1 or 0 | ||
end) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
local fs = require("rocks.fs") | ||
local tempdir = vim.fn.tempname() | ||
describe("rocks.fs", function() | ||
it("mkdir_p", function() | ||
local dir = vim.fs.joinpath(tempdir, "bar", "baz", "bat") | ||
fs.mkdir_p(dir) | ||
assert.is_not_nil(vim.uv.fs_stat(dir)) | ||
end) | ||
end) |