diff options
author | opalmay <[email protected]> | 2023-02-17 15:04:39 +0200 |
---|---|---|
committer | opalmay <[email protected]> | 2023-02-24 17:18:10 +0200 |
commit | e3d686082907ffe99c89e459c0db281a5598db25 (patch) | |
tree | 31a0567cbc307cd6f6b67dafbe1c8843732834a6 /lua | |
parent | 74ad599dda282d29d75bcce9c60a5b875def51de (diff) |
feat: NVIM_APPNAME defaults to lvim if unset
Diffstat (limited to 'lua')
-rw-r--r-- | lua/lvim/bootstrap.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lua/lvim/bootstrap.lua b/lua/lvim/bootstrap.lua index b629615e..a577f6bb 100644 --- a/lua/lvim/bootstrap.lua +++ b/lua/lvim/bootstrap.lua @@ -50,6 +50,11 @@ 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") + -- for older installs. NVIM_APPNAME defaults to "lvim" + if not vim.env.NVIM_APPNAME then + vim.env.NVIM_APPNAME = "lvim" + end + ---Get the full path to LunarVim's base directory ---@return string function _G.get_lvim_base_dir() |