Skip to content

Commit

Permalink
refactor: yazi.lua follows lua export conventions
Browse files Browse the repository at this point in the history
  • Loading branch information
barona-mika-vilpas committed Feb 25, 2024
1 parent 45b8651 commit abcb7c0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lua/yazi.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
local window = require('yazi.window')
local utils = require('yazi.utils')

local M = {}

---@type integer?
YAZI_BUFFER = nil
YAZI_LOADED = false
Expand Down Expand Up @@ -69,7 +71,7 @@ local function exec_yazi_command(cmd)
end

--- :Yazi entry point
local function yazi(path)
function M.yazi(path)
if utils.is_yazi_available() ~= true then
print('Please install yazi. Check documentation for more information')
return
Expand All @@ -86,6 +88,4 @@ local function yazi(path)
exec_yazi_command(cmd)
end

return {
yazi = yazi,
}
return M

0 comments on commit abcb7c0

Please sign in to comment.