Files
config.nvim/lua/boot/util.lua
2025-06-17 22:33:09 +08:00

21 lines
342 B
Lua

local M = {
uv = vim.uv or vim.loop,
has = function(what)
return vim.fn.has(what) == 1
end,
executable = function(what)
return vim.fn.executable(what) == 1
end,
}
setmetatable(M, {
---@param key string
__index = function(_, key)
return require("util." .. key)
end,
})
_G.NeoVim = M