Skip to content

Commit

Permalink
fix(vim): add vim.env index
Browse files Browse the repository at this point in the history
  • Loading branch information
nullchilly committed Sep 2, 2023
1 parent e0a4194 commit 1786287
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lua/catppuccin/lib/vim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ vim.fn.stdpath = function(what)
end
end

vim.env = setmetatable({}, {
__index = function(_, k) return os.getenv(k) end,
})

-- Reference: https://github.com/neovim/neovim/blob/master/runtime/lua/vim/shared.lua
local function tbl_isempty(t)
assert(type(t) == "table", string.format("Expected table, got %s", type(t)))
Expand Down

0 comments on commit 1786287

Please sign in to comment.