From 9bf5649c7df6bbd746956e9a96b616f61a59fa9b Mon Sep 17 00:00:00 2001 From: Guldoman Date: Wed, 2 Nov 2022 08:10:57 +0100 Subject: Use new `command.add` syntax (#136) --- plugins/pdfview.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'plugins/pdfview.lua') diff --git a/plugins/pdfview.lua b/plugins/pdfview.lua index 199584e..56d5eba 100644 --- a/plugins/pdfview.lua +++ b/plugins/pdfview.lua @@ -3,10 +3,8 @@ local core = require "core" local command = require "core.command" local keymap = require "core.keymap" -command.add("core.docview", { - ["pdfview:show-preview"] = function() - local av = core.active_view - +command.add("core.docview!", { + ["pdfview:show-preview"] = function(av) -- User's home directory local homedir = "" -- cgit v1.2.3