We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e27e60 commit 50ba776Copy full SHA for 50ba776
tests/minimal_init.ts
@@ -1,3 +1,7 @@
1
+const append = (option: any, value: any) => {
2
+ option.append(option, value);
3
+};
4
+
5
const loadModule = (module: string, source: string, directory?: string) => {
6
const moduleDir = directory || `/tmp/${module}`;
7
const directoryExists = vim.fn.isdirectory(moduleDir);
@@ -6,6 +10,8 @@ const loadModule = (module: string, source: string, directory?: string) => {
10
vim.fn.system(["git", "clone", source, moduleDir]);
11
}
8
12
13
+ append(vim.opt.rtp, moduleDir);
14
9
15
return moduleDir;
16
};
17
@@ -21,12 +27,7 @@ const telescopeDir = loadModule(
21
27
"https://github.com/nvim-telescope/telescope.nvim",
22
28
);
23
29
24
-const append = (option: any, value: any) => {
25
- option.append(option, value);
26
-};
-
30
append(vim.opt.rtp, ".");
-append(vim.opt.rtp, plenaryDir);
-append(vim.opt.rtp, telescopeDir);
31
vim.cmd("runtime plugin/plenary.vim");
32
+vim.cmd("runtime plugin/telescope.lua");
33
require("plenary.busted");
0 commit comments