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:
parent
46b1499f4f
commit
f2a18cdce7
|
@ -7,6 +7,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" },
|
||||||
|
|
Loading…
Reference in New Issue