From ff96b251c81214096cf23fb9207eca48e34bb9ab Mon Sep 17 00:00:00 2001 From: jgmdev Date: Sun, 15 May 2022 16:29:30 -0400 Subject: lfautoinsert: make use of new strict predicate --- plugins/lfautoinsert.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins') diff --git a/plugins/lfautoinsert.lua b/plugins/lfautoinsert.lua index 138f48f..1d9772d 100644 --- a/plugins/lfautoinsert.lua +++ b/plugins/lfautoinsert.lua @@ -64,7 +64,7 @@ local function indent_size(doc, line) return e - s end -command.add("core.docview", { +command.add("core.docview!", { ["autoinsert:newline"] = function() command.perform("doc:newline") @@ -97,7 +97,7 @@ command.add("core.docview", { }) keymap.add { - ["return"] = { "command:submit", "autoinsert:newline" } + ["return"] = { "autoinsert:newline" } } return { -- cgit v1.2.3