aboutsummaryrefslogtreecommitdiff
path: root/plugins/lfautoinsert.lua
diff options
context:
space:
mode:
authorjgmdev <jgmdev@gmail.com>2022-05-15 16:29:30 -0400
committerjgmdev <jgmdev@gmail.com>2022-05-22 13:20:25 -0400
commitff96b251c81214096cf23fb9207eca48e34bb9ab (patch)
tree04581f4eb4ba3d852aafe83b38590c4fe0880093 /plugins/lfautoinsert.lua
parent45689246a7ddfe79826a91a78fc20d8a5cc010bc (diff)
downloadlite-xl-plugins-ff96b251c81214096cf23fb9207eca48e34bb9ab.tar.gz
lite-xl-plugins-ff96b251c81214096cf23fb9207eca48e34bb9ab.zip
lfautoinsert: make use of new strict predicate
Diffstat (limited to 'plugins/lfautoinsert.lua')
-rw-r--r--plugins/lfautoinsert.lua4
1 files changed, 2 insertions, 2 deletions
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 {