v1.0.0
This commit is contained in:
20
lua/boot/util.lua
Normal file
20
lua/boot/util.lua
Normal file
@ -0,0 +1,20 @@
|
||||
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
|
Reference in New Issue
Block a user