fix: theme not loading in neovim-nightly (#59)

This commit is contained in:
Zachary Churchill 2021-09-18 22:25:08 -04:00 committed by GitHub
parent c5cb601a6a
commit ebea516ac7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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