From ebea516ac7f8fc22604728c2193388992ef4e9ec Mon Sep 17 00:00:00 2001 From: Zachary Churchill Date: Sat, 18 Sep 2021 22:25:08 -0400 Subject: [PATCH] fix: theme not loading in neovim-nightly (#59) --- lua/lualine_require.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/lualine_require.lua b/lua/lualine_require.lua index 27a9afd..ae14a37 100644 --- a/lua/lualine_require.lua +++ b/lua/lualine_require.lua @@ -45,7 +45,7 @@ end function M.rtp_searcher(file, once) local ret = {} - for dir in vim.gsplit(vim.api.nvim_get_option 'rtp', ',') do + for _, dir in ipairs(vim.api.nvim_list_runtime_paths()) do local path = dir .. M.sep .. file if vim.loop.fs_stat(path) then ret[#ret + 1] = path