fix: theme not loading in neovim-nightly (#59)
This commit is contained in:
parent
c5cb601a6a
commit
ebea516ac7
|
@ -45,7 +45,7 @@ end
|
||||||
|
|
||||||
function M.rtp_searcher(file, once)
|
function M.rtp_searcher(file, once)
|
||||||
local ret = {}
|
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
|
local path = dir .. M.sep .. file
|
||||||
if vim.loop.fs_stat(path) then
|
if vim.loop.fs_stat(path) then
|
||||||
ret[#ret + 1] = path
|
ret[#ret + 1] = path
|
||||||
|
|
Loading…
Reference in New Issue