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-10-23 00:43:50 +08:00 committed by GitHub
parent 46b1499f4f
commit f2a18cdce7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 0 deletions

View File

@ -7,6 +7,14 @@ local View = require "core.view"
---@field super core.view
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 lines = {
{ fmt = "%s to run a command", cmd = "core:find-command" },