diff options
author | kylo252 <[email protected]> | 2021-08-27 18:47:31 +0200 |
---|---|---|
committer | kylo252 <[email protected]> | 2021-08-27 21:06:50 +0200 |
commit | 23952f14437be39056b1e89436e8aea76dfbb61d (patch) | |
tree | 06d0d3fe49242a4fc03019e88092adc3887b1520 /lua/core/dashboard.lua | |
parent | df7c3cb8f0512042bd24c10e744718991ae6a9a2 (diff) |
Fix missing "HOME" variable errors (#1415)
Co-authored-by: MarcSchaetz <[email protected]>
Diffstat (limited to 'lua/core/dashboard.lua')
-rw-r--r-- | lua/core/dashboard.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lua/core/dashboard.lua b/lua/core/dashboard.lua index ac6ee013..a613921f 100644 --- a/lua/core/dashboard.lua +++ b/lua/core/dashboard.lua @@ -1,4 +1,5 @@ local M = {} +local home_dir = vim.loop.os_homedir() M.config = function(config) lvim.builtin.dashboard = { @@ -6,7 +7,7 @@ M.config = function(config) on_config_done = nil, search_handler = "telescope", disable_at_vim_enter = 0, - session_directory = os.getenv "HOME" .. "/.cache/lvim/sessions", + session_directory = home_dir .. "/.cache/lvim/sessions", custom_header = { "⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣀⣀⣀⣀⣀⣀⣀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀", "⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⣤⣶⣾⠿⠿⠟⠛⠛⠛⠛⠿⠿⣿⣷⣤⣄⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀", |