Quality of life improvements
This commit is contained in:
parent
9bec18e4aa
commit
2cc55c4432
|
@ -16,7 +16,7 @@ function command.add(predicate, map)
|
||||||
predicate = function() return core.active_view:is(class) end
|
predicate = function() return core.active_view:is(class) end
|
||||||
end
|
end
|
||||||
for name, fn in pairs(map) do
|
for name, fn in pairs(map) do
|
||||||
assert(not command.map[name], "command already exists: " .. name)
|
-- assert(not command.map[name], "command already exists: " .. name)
|
||||||
command.map[name] = { predicate = predicate, perform = fn }
|
command.map[name] = { predicate = predicate, perform = fn }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -311,6 +311,7 @@ end
|
||||||
function core.try(fn, ...)
|
function core.try(fn, ...)
|
||||||
local err
|
local err
|
||||||
local ok, res = xpcall(fn, function(msg)
|
local ok, res = xpcall(fn, function(msg)
|
||||||
|
print(debug.traceback())
|
||||||
local item = core.error("%s", msg)
|
local item = core.error("%s", msg)
|
||||||
item.info = debug.traceback(nil, 2):gsub("\t", "")
|
item.info = debug.traceback(nil, 2):gsub("\t", "")
|
||||||
err = msg
|
err = msg
|
||||||
|
|
1
data/plugins/autoinsert.lua
Symbolic link
1
data/plugins/autoinsert.lua
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../../../lite-plugins/plugins/autoinsert.lua
|
1
data/plugins/bracketmatch.lua
Symbolic link
1
data/plugins/bracketmatch.lua
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../../../lite-plugins/plugins/bracketmatch.lua
|
1
data/plugins/language_fennel.lua
Symbolic link
1
data/plugins/language_fennel.lua
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../../../lite-plugins/plugins/language_fennel.lua
|
1
data/plugins/selectionhighlight.lua
Symbolic link
1
data/plugins/selectionhighlight.lua
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../../../lite-plugins/plugins/selectionhighlight.lua
|
Loading…
Reference in a new issue