aboutsummaryrefslogtreecommitdiffstats
path: root/lua/alpha/telescope/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/alpha/telescope/init.lua')
-rw-r--r--lua/alpha/telescope/init.lua14
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