Quality of life improvements

This commit is contained in:
Jeremy Penner 2020-11-19 21:25:02 -05:00
parent 9bec18e4aa
commit 2cc55c4432
6 changed files with 6 additions and 1 deletions

View file

@ -16,7 +16,7 @@ function command.add(predicate, map)
predicate = function() return core.active_view:is(class) end
end
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 }
end
end

View file

@ -311,6 +311,7 @@ end
function core.try(fn, ...)
local err
local ok, res = xpcall(fn, function(msg)
print(debug.traceback())
local item = core.error("%s", msg)
item.info = debug.traceback(nil, 2):gsub("\t", "")
err = msg

1
data/plugins/autoinsert.lua Symbolic link
View file

@ -0,0 +1 @@
../../../lite-plugins/plugins/autoinsert.lua

View file

@ -0,0 +1 @@
../../../lite-plugins/plugins/bracketmatch.lua

View file

@ -0,0 +1 @@
../../../lite-plugins/plugins/language_fennel.lua

View file

@ -0,0 +1 @@
../../../lite-plugins/plugins/selectionhighlight.lua