mirror of
https://github.com/neovim/neovim.git
synced 2025-10-12 04:46:10 +00:00

This is to prevent concurrent modification, just like save_rtp in the vim 8 implementation
13 lines
301 B
Lua
13 lines
301 B
Lua
table.insert(_G.test_loadorder, "funky!")
|
|
|
|
if not _G.nesty then
|
|
_G.nesty = true
|
|
local save_order = _G.test_loadorder
|
|
_G.test_loadorder = {}
|
|
_G.vim.o.pp = "" -- funky!
|
|
vim.cmd [[runtime! filen.lua ]]
|
|
_G.nested_order = _G.test_loadorder
|
|
_G.test_loadorder = save_order
|
|
_G.nesty = nil
|
|
end
|