Skip to content

Commit

Permalink
chore: autogen (vimdocs+formating)
Browse files Browse the repository at this point in the history
  • Loading branch information
shadmansaleh authored and github-actions[bot] committed Nov 1, 2024
1 parent 6f2def5 commit b39f1f0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lua/lualine/utils/loader.lua
Original file line number Diff line number Diff line change
Expand Up @@ -221,10 +221,8 @@ local function load_theme(theme_name)
local n_files = #files
if n_files == 0 then
-- No match found on runtimepath. Fall back to package.path
local file = assert(
package.searchpath('lualine.themes.' .. theme_name, package.path),
'Theme ' .. theme_name .. ' not found'
)
local file =
assert(package.searchpath('lualine.themes.' .. theme_name, package.path), 'Theme ' .. theme_name .. ' not found')
retval = dofile(file)
elseif n_files == 1 then
-- when only one is found run that and return it's return value
Expand Down

0 comments on commit b39f1f0

Please sign in to comment.