From 0cde83cfa15c5c0b8d117c34a8bfae38b4dec39c Mon Sep 17 00:00:00 2001 From: Ariel D'Alessandro Date: Sun, 26 Mar 2023 19:37:38 +0200 Subject: feat: remove mind since is deprecated --- lua/alpha/telescope/actions.lua | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lua/alpha/telescope/actions.lua') diff --git a/lua/alpha/telescope/actions.lua b/lua/alpha/telescope/actions.lua index abd3381..c7cdaa8 100644 --- a/lua/alpha/telescope/actions.lua +++ b/lua/alpha/telescope/actions.lua @@ -160,4 +160,10 @@ M.enable_plugin = function(prompt_bufnr) end) end +M.create_scratch_file = function(prompt_bufnr) + local new_scratch = action_state.get_current_line() + actions.close(prompt_bufnr) + vim.cmd(string.format("edit ~/.config/nvim/lua/scratchs/%s.lua", new_scratch)) +end + return M -- cgit v1.2.3