16 lines
161 B
Lua
16 lines
161 B
Lua
local M = {}
|
|
|
|
function M.when(f)
|
|
if vim.g.vscode ~= nil then
|
|
f()
|
|
end
|
|
end
|
|
|
|
function M.unless(f)
|
|
if vim.g.vscode == nil then
|
|
f()
|
|
end
|
|
end
|
|
|
|
return M
|