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/init.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/init.lua')
| -rw-r--r-- | lua/alpha/telescope/init.lua | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/lua/alpha/telescope/init.lua b/lua/alpha/telescope/init.lua index b5087b3..28397b0 100644 --- a/lua/alpha/telescope/init.lua +++ b/lua/alpha/telescope/init.lua @@ -8,7 +8,6 @@ local reloader = function() end end -local action_state = require "telescope.actions.state" local fb_actions = require("telescope").extensions.file_browser.actions local actions = require "telescope.actions" local my_actions = require "alpha.telescope.actions" @@ -94,6 +93,19 @@ function M.my_plugins() } end +function M.scratchs() + require("telescope.builtin").find_files { + prompt_title = "Scratchs", + no_ignore = true, + cwd = "~/.config/nvim/lua/scratchs/", + attach_mappings = function (_, map) + map("i", "<c-t>", my_actions.create_scratch_file) + + return true + end + } +end + function M.projectionist() return require("telescope").extensions.projectionist.projectionist() end |