From 8f4d23c19b45bedae908c40211641b7748b31473 Mon Sep 17 00:00:00 2001 From: wxt1221 <3264117476@qq.com> Date: Wed, 21 Feb 2024 10:52:54 +0800 Subject: [PATCH] finish! --- lua/Luogu-On-Neovim.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lua/Luogu-On-Neovim.lua b/lua/Luogu-On-Neovim.lua index 008dd02..953f89a 100644 --- a/lua/Luogu-On-Neovim.lua +++ b/lua/Luogu-On-Neovim.lua @@ -37,4 +37,14 @@ function M.submit() local proble=vim.ui.input({prompt='[Luogu-CLI]Enter Problem Code:'},function(input) vim.api.nvim_command("!~/.config/luogu-cli/LuoguCLI submit "..input.." %") end); end +function M.solution() + local proble=vim.ui.input({prompt='[Luogu-CLI]Enter Problem Code:'},function(input) vim.api.nvim_command("!~/.config/luogu-cli/LuoguCLI solution "..input) end); +end + +function M.problem() + local proble=vim.ui.input({prompt='[Luogu-CLI]Enter Problem Code:'},function(input) vim.api.nvim_command("!~/.config/luogu-cli/LuoguCLI problem "..input) end); +end + + + return M