diff options
Diffstat (limited to 'lua/alpha/telescope/actions.lua')
| -rw-r--r-- | lua/alpha/telescope/actions.lua | 6 |
1 files changed, 6 insertions, 0 deletions
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 |