From 6d3e8be2654d04fc91a7d691453246a8fb8d89d3 Mon Sep 17 00:00:00 2001 From: opalmay Date: Fri, 17 Feb 2023 11:59:29 +0200 Subject: chore: cleanup --- lua/lvim/bootstrap.lua | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'lua/lvim/bootstrap.lua') 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, -- cgit v1.2.3