summaryrefslogtreecommitdiff
path: root/lua/lvim
diff options
context:
space:
mode:
authoropalmay <[email protected]>2023-02-16 22:44:26 +0200
committeropalmay <[email protected]>2023-02-24 16:45:28 +0200
commite85a6e16604c8ddfcfad404d78137bd22f989bd9 (patch)
tree6c826011a7cea15fd3aa1025915eb4757e20ae58 /lua/lvim
parentbc2bb3c0ebd0790cb9805cf52e496a21b4e365dd (diff)
feat(bootstrap): also override config and data
Diffstat (limited to 'lua/lvim')
-rw-r--r--lua/lvim/bootstrap.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/lua/lvim/bootstrap.lua b/lua/lvim/bootstrap.lua
index 2edc3e6c..56e1c621 100644
--- a/lua/lvim/bootstrap.lua
+++ b/lua/lvim/bootstrap.lua
@@ -64,11 +64,14 @@ function M:init(base_dir)
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()
+ elseif what == "config" then
+ return _G.get_config_dir()
+ elseif what == "data" then
+ return _G.get_runtime_dir()
end
return vim.call("stdpath", what)
end