diff options
| author | Ariel D'Alessandro <dalessandro.ariel@gmail.com> | 2023-03-26 19:37:38 +0200 |
|---|---|---|
| committer | Ariel D'Alessandro <dalessandro.ariel@gmail.com> | 2023-03-26 19:37:38 +0200 |
| commit | 0cde83cfa15c5c0b8d117c34a8bfae38b4dec39c (patch) | |
| tree | 08b945b16f7a95b73437f4b7bc8830b8dd1cb71f /lua/alpha/telescope/actions.lua | |
| parent | 5d3f2a47e06edf9b9c4eac9b0b0c89b36c2106b7 (diff) | |
| download | nvim-conf-0cde83cfa15c5c0b8d117c34a8bfae38b4dec39c.tar.gz nvim-conf-0cde83cfa15c5c0b8d117c34a8bfae38b4dec39c.zip | |
feat: remove mind since is deprecated
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 |