summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoropalmay <[email protected]>2023-02-17 11:59:29 +0200
committeropalmay <[email protected]>2023-02-24 17:18:10 +0200
commit6d3e8be2654d04fc91a7d691453246a8fb8d89d3 (patch)
treedf7f177897fa05d4a5bbf1b599dff11709d259a3
parent015f2576b743462a6b2e0d0b69cd0d567e6e62cc (diff)
chore: cleanup
-rw-r--r--lua/lvim/bootstrap.lua25
1 files changed, 0 insertions, 25 deletions
diff --git a/lua/lvim/bootstrap.lua b/lua/lvim/bootstrap.lua
index 0c58de76..b629615e 100644
--- a/lua/lvim/bootstrap.lua
+++ b/lua/lvim/bootstrap.lua
@@ -50,37 +50,12 @@ function M:init(base_dir)
self.pack_dir = join_paths(self.runtime_dir, "site", "pack")
self.lazy_install_dir = join_paths(self.pack_dir, "lazy", "opt", "lazy.nvim")
- ---@meta overridden to use LUNARVIM_CACHE_DIR instead, since a lot of plugins call this function internally
- ---NOTE: changes to "data" are currently unstable, see #2507
- ---@diagnostic disable-next-line: duplicate-set-field
- -- vim.fn.stdpath = function(what)
- -- if what == "cache" then
- -- return _G.get_cache_dir()
- -- end
- -- return vim.call("stdpath", what)
- -- end
-
---Get the full path to LunarVim's base directory
---@return string
function _G.get_lvim_base_dir()
return base_dir
end
- -- if os.getenv "LUNARVIM_RUNTIME_DIR" then
- -- vim.opt.rtp:remove(join_paths(vim.call("stdpath", "data"), "site"))
- -- vim.opt.rtp:remove(join_paths(vim.call("stdpath", "data"), "site", "after"))
- -- -- vim.opt.rtp:prepend(join_paths(self.runtime_dir, "site"))
- -- vim.opt.rtp:append(join_paths(self.runtime_dir, "lvim", "after"))
- -- vim.opt.rtp:append(join_paths(self.runtime_dir, "site", "after"))
-
- -- vim.opt.rtp:remove(vim.call("stdpath", "config"))
- -- vim.opt.rtp:remove(join_paths(vim.call("stdpath", "config"), "after"))
- -- vim.opt.rtp:prepend(self.config_dir)
- -- vim.opt.rtp:append(join_paths(self.config_dir, "after"))
-
- -- vim.opt.packpath = vim.opt.rtp:get()
- -- end
-
require("lvim.plugin-loader").init {
package_root = self.pack_dir,
install_path = self.lazy_install_dir,