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/config/defaults.lua | |
parent | df7c3cb8f0512042bd24c10e744718991ae6a9a2 (diff) |
Fix missing "HOME" variable errors (#1415)
Co-authored-by: MarcSchaetz <[email protected]>
Diffstat (limited to 'lua/config/defaults.lua')
-rw-r--r-- | lua/config/defaults.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lua/config/defaults.lua b/lua/config/defaults.lua index 5dc98698..9bd1bdd8 100644 --- a/lua/config/defaults.lua +++ b/lua/config/defaults.lua @@ -1,4 +1,5 @@ -CONFIG_PATH = os.getenv "HOME" .. "/.local/share/lunarvim/lvim" +local home_dir = vim.loop.os_homedir() +CONFIG_PATH = home_dir .. "/.local/share/lunarvim/lvim" DATA_PATH = vim.fn.stdpath "data" CACHE_PATH = vim.fn.stdpath "cache" TERMINAL = vim.fn.expand "$TERMINAL" @@ -11,7 +12,7 @@ lvim = { line_wrap_cursor_movement = true, transparent_window = false, format_on_save = true, - vsnip_dir = os.getenv "HOME" .. "/.config/snippets", + vsnip_dir = home_dir .. "/.config/snippets", database = { save_location = "~/.config/lunarvim_db", auto_execute = 1 }, keys = {}, |