diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-12-21 00:55:36 +0100 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-12-21 00:55:36 +0100 |
commit | 22134d397b0c658723d29acdf1931d4dcab9f8b3 (patch) | |
tree | 100f242cf8e3357515d8174fce51c0faced1e1c9 | |
parent | b07a3d6992f7acc1aa58df12468bc7cbadee54df (diff) |
Clean up init
-rw-r--r-- | init.lua | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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) |