summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/core/dashboard.lua
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2021-09-06 21:53:56 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2021-09-06 21:53:56 +0200
commit6a1732982287ef5aff2a6de171192b9e2bb90758 (patch)
tree543f94f80d548b9ed7a9d0daecb08575a01a9a45 /.config/nvim/lua/core/dashboard.lua
parentb89e893bfc7b8893dc4c13aa55f627096b32758a (diff)
Updates to nvim from lvim
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 = {
" ##############..... ############## ",
" ##############......############## ",