local source = debug.getinfo(1, "S").source:sub(2) local root = vim.fn.fnamemodify(source, ":p:h:h") vim.opt.runtimepath:prepend(root) -- Keep benchmark runs self-contained and make icon lookup deterministic. local devicons = { icons = { lua = "", markdown = "", }, } function devicons.get_icon_by_filetype(filetype) return devicons.icons[filetype], "StatuslineBenchmarkDevicon" end package.preload["nvim-web-devicons"] = function() return devicons end