notex.nvim/minimal_init.lua

31 lines
807 B
Lua
Raw Normal View History

2025-10-05 20:23:47 -04:00
-- Minimal Neovim config for testing
vim.opt.runtimepath:prepend('.')
-- Mock vim functions that tests need
vim.loop = vim.loop or {}
vim.loop.fs_stat = vim.loop.fs_stat or function(path)
return {type = "file", size = 100}
end
vim.loop.timer_start = vim.loop.timer_start or function(delay, callback)
return 1
end
vim.loop.timer_stop = vim.loop.timer_stop or function(timer_id)
-- Mock timer stop
end
vim.uv = vim.uv or {}
vim.uv.new_timer = vim.uv.new_timer or function()
return {
start = function() end,
stop = function() end,
close = function() end
}
end
vim.uv.hrtime = vim.uv.hrtime or function()
return os.clock() * 1e9
end
vim.schedule = vim.schedule or function(fn) fn() end
vim.defer_fn = vim.defer_fn or function(fn, delay) fn() end
print("Minimal Neovim config loaded")