summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/init.lua b/init.lua
index 9b3bfb9..566b947 100644
--- a/init.lua
+++ b/init.lua
@@ -1,8 +1,7 @@
-- ensure nvim with essential plugins.
local data_path = vim.fn.stdpath "data"
-local aniseed_path = vim.fn.stdpath "data" .. "/aniseed/aniseed.nvim"
-local lazy_path = vim.fn.stdpath "data" .. "/lazy/lazy.nvim"
-local fmt = string.format
+local aniseed_path = data_path .. "/aniseed/aniseed.nvim"
+local lazy_path = data_path .. "/lazy/lazy.nvim"
local function ensure(user, plugin, path)
if not vim.loop.fs_stat(path) then
@@ -11,7 +10,7 @@ local function ensure(user, plugin, path)
"clone",
"--filter=blob:none",
"--single-branch",
- fmt("https://github.com/%s/%s.git", user, plugin),
+ string.format("https://github.com/%s/%s.git", user, plugin),
path,
}
end
@@ -19,6 +18,7 @@ end
ensure("folke", "lazy.nvim", lazy_path)
ensure("Olical", "aniseed", aniseed_path)
+
vim.opt.runtimepath:prepend(lazy_path)
vim.opt.runtimepath:prepend(aniseed_path)