Added some comments to eradicate all warnings in linter
This commit is contained in:
15
init.lua
15
init.lua
@ -2,27 +2,14 @@
|
|||||||
local core = require "core"
|
local core = require "core"
|
||||||
local style = require "core.style"
|
local style = require "core.style"
|
||||||
local command = require "core.command"
|
local command = require "core.command"
|
||||||
local keymap = require "core.keymap"
|
|
||||||
local View = require "core.view"
|
local View = require "core.view"
|
||||||
local process = require "process" -- Child Processes API
|
local process = require "process" -- Child Processes API
|
||||||
local config = require "core.config"
|
local config = require "core.config"
|
||||||
|
|
||||||
local function dump(o)
|
|
||||||
if type(o) == 'table' then
|
|
||||||
local s = '{ '
|
|
||||||
for k,v in pairs(o) do
|
|
||||||
if type(k) ~= 'number' then k = '"'..k..'"' end
|
|
||||||
s = s .. '['..k..'] = ' .. dump(v) .. ','
|
|
||||||
end
|
|
||||||
return s .. '} '
|
|
||||||
else
|
|
||||||
return tostring(o)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
local active_views = {}
|
local active_views = {}
|
||||||
|
|
||||||
-- ---------- JPDebugView: a simple scrollable log view ----------
|
-- ---------- JPDebugView: a simple scrollable log view ----------
|
||||||
|
---@class JPDebugView : core.view
|
||||||
local JPDebugView = View:extend()
|
local JPDebugView = View:extend()
|
||||||
|
|
||||||
function JPDebugView:new(title)
|
function JPDebugView:new(title)
|
||||||
|
|||||||
Reference in New Issue
Block a user