Skip to content

Commit

Permalink
Use vim.uv.os_homedir()
Browse files Browse the repository at this point in the history
  • Loading branch information
mimikun committed Feb 11, 2024
1 parent 67dd82c commit d32b78d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dot_config/nvim/lua/core/global.lua
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ function global:load_variables()
---@type string
self.path_sep = self.is_windows and "\\" or "/"

local home = self.is_windows and os.getenv("USERPROFILE") or os.getenv("HOME")
self.home = home
---@type string
self.home = uv.os_homedir()

---@type string
self.cache_dir = home .. self.path_sep .. ".cache" .. self.path_sep .. "nvim" .. self.path_sep
Expand Down

0 comments on commit d32b78d

Please sign in to comment.