Untested POC
This commit is contained in:
parent
461318a656
commit
bfb9b61194
5 changed files with 254 additions and 0 deletions
31
minimal_init.lua
Normal file
31
minimal_init.lua
Normal file
|
@ -0,0 +1,31 @@
|
|||
-- 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")
|
Loading…
Add table
Add a link
Reference in a new issue