From 856b3d99cde6eac0a0ab6085d2a5fca695b02352 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Mon, 6 Feb 2023 10:36:42 +0000 Subject: [PATCH] feat: add a `ToggleCheckbox` user command --- lua/toggle-checkbox.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lua/toggle-checkbox.lua b/lua/toggle-checkbox.lua index 80c1bcd..c7ece47 100644 --- a/lua/toggle-checkbox.lua +++ b/lua/toggle-checkbox.lua @@ -38,4 +38,6 @@ M.toggle = function() vim.api.nvim_win_set_cursor(0, cursor) end +vim.api.nvim_create_user_command("ToggleCheckbox", M.toggle, {}); + return M