diff options
author | kylo252 <[email protected]> | 2022-10-07 04:51:09 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2022-10-06 22:51:09 -0400 |
commit | f6402563abb3ace148168a27e7889c961dd94bfd (patch) | |
tree | 028cd4e2b397802d582ef7e9f35d3c8eb159f7a4 /init.lua | |
parent | 40e2d5a1715ab7cdb0c4b4d849f1628caadb6842 (diff) |
feat: enable global installation (#3161)
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -1,5 +1,8 @@ -local init_path = debug.getinfo(1, "S").source:sub(2) -local base_dir = init_path:match("(.*[/\\])"):sub(1, -2) +local base_dir = vim.env.LUNARVIM_BASE_DIR + or (function() + local init_path = debug.getinfo(1, "S").source + return init_path:sub(2):match("(.*[/\\])"):sub(1, -2) + end)() if not vim.tbl_contains(vim.opt.rtp:get(), base_dir) then vim.opt.rtp:append(base_dir) |