From 82ae6922e05f8a3d933ea0dba3eea261d46c78c1 Mon Sep 17 00:00:00 2001 From: rootiest Date: Fri, 23 Aug 2024 09:56:26 -0400 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20=20refactor(cmd):=20move?= =?UTF-8?q?=20cmd=20options=20to=20a=20single=20file?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plugins can reference their cmd table from the data.cmd file --- lua/data/cmd.lua | 80 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 lua/data/cmd.lua diff --git a/lua/data/cmd.lua b/lua/data/cmd.lua new file mode 100644 index 0000000..cab32da --- /dev/null +++ b/lua/data/cmd.lua @@ -0,0 +1,80 @@ +-- ╭─────────────────────────────────────────────────────────╮ +-- │ CMD DATA │ +-- ╰─────────────────────────────────────────────────────────╯ + +local M = {} + +M.autosave = { + "ASToggle", +} + +M.codesnap = { + "CodeSnap", + "CodeSnapSave", + "CodeSnapHighlight", + "CodeSnapASCII", +} + +M.diffview = { + "DiffviewOpen", + "DiffviewClose", + "DiffviewToggleFiles", + "DiffviewFocusFiles", + "DiffviewRefresh", + "DiffviewFileHistory", + "DiffviewLog", +} + +M.fugit = { + "Fugit2", + "Fugit2Diff", + "Fugit2Graph", +} + +M.gist = { + "GistCreate", + "GistCreateFromFile", + "GistsList", +} + +M.gx = { + "Browse", +} + +M.kitty_scrollback = { + "KittyScrollbackGenerateKittens", + "KittyScrollbackCheckHealth", +} + +M.lazygit = { + "LazyGit", + "LazyGitConfig", + "LazyGitCurrentFile", + "LazyGitFilter", + "LazyGitFilterCurrentFile", +} + +M.nekifoch = "Nekifoch" + +M.thanks = { + "ThanksAll", + "ThanksGithubAuth", + "ThanksGithubLogout", + "ThanksClearCache", +} + +M.gitlinker = { + "GitLink", +} + +M.qalc = { + "Qalc", + "QalcAttach", + "QalcYank", +} + +M.ripsub = { + "RipSubstitute", +} + +return M