Added some comments to eradicate all warnings in linter
This commit is contained in:
17
init.lua
17
init.lua
@ -2,27 +2,14 @@
|
||||
local core = require "core"
|
||||
local style = require "core.style"
|
||||
local command = require "core.command"
|
||||
local keymap = require "core.keymap"
|
||||
local View = require "core.view"
|
||||
local process = require "process" -- Child Processes API
|
||||
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 = {}
|
||||
|
||||
-- ---------- JPDebugView: a simple scrollable log view ----------
|
||||
---@class JPDebugView : core.view
|
||||
local JPDebugView = View:extend()
|
||||
|
||||
function JPDebugView:new(title)
|
||||
@ -137,7 +124,7 @@ local function run_target(target, name)
|
||||
return view
|
||||
end
|
||||
|
||||
command.add(nil, {
|
||||
command.add(false, {
|
||||
["jpdebug:run"] = function()
|
||||
local targets = get_targets()
|
||||
local target = get_selected_target()
|
||||
|
||||
Reference in New Issue
Block a user