feat(core.emptyview): add name to emptyview (#1569)

* feat(core.emptyview): add name to emptyview

* fix(core.emptyview): set filename to empty
This commit is contained in:
Takase
2024-11-27 20:53:34 +08:00
committed by takase1121
parent ac4995ee46
commit 7c68b20115
+8
View File
@@ -6,6 +6,14 @@ local View = require "core.view"
---@field super core.view ---@field super core.view
local EmptyView = View:extend() local EmptyView = View:extend()
function EmptyView:get_name()
return "Get Started"
end
function EmptyView:get_filename()
return ""
end
local function draw_text(x, y, color) local function draw_text(x, y, color)
local lines = { local lines = {
{ fmt = "%s to run a command", cmd = "core:find-command" }, { fmt = "%s to run a command", cmd = "core:find-command" },