summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/core/dashboard.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/lua/core/dashboard.lua')
-rw-r--r--.config/nvim/lua/core/dashboard.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/.config/nvim/lua/core/dashboard.lua b/.config/nvim/lua/core/dashboard.lua
index f9eec22..70e862e 100644
--- a/.config/nvim/lua/core/dashboard.lua
+++ b/.config/nvim/lua/core/dashboard.lua
@@ -1,4 +1,5 @@
local M = {}
+local home_dir = vim.loop.os_homedir()
M.config = function(config)
options.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/options/sessions",
+ session_directory = home_dir .. "/.cache/options/sessions",
custom_header = {
" ##############..... ############## ",
" ##############......############## ",