diff --git a/lua/plugins/scretch.lua b/lua/plugins/scretch.lua new file mode 100644 index 00000000..1d52a01a --- /dev/null +++ b/lua/plugins/scretch.lua @@ -0,0 +1,16 @@ +local M = { "Sonicfury/scretch.nvim" } + +M.dependencies = { "ibhagwan/fzf-lua" } + +M.opts = { backend = "fzf-lua", scretch_dir = vim.fn.stdpath("cache") .. "/scretch/" } + +M.keys = { + { "sn", function() require("scretch").new() end, desc = "[N]ew [s]cretch" }, + { "snn", function() require("scretch").new_named() end, desc = "[N]ew [s]cretch [n]amed" }, + { "sl", function() require("scretch").last() end, desc = "[L]ast [s]cretch" }, + { "ss", function() require("scretch").search() end, desc = "[S]cretch [S]earch" }, + { "sg", function() require("scretch").grep() end, desc = "[G]rep [S]cretch" }, + { "sv", function() require("scretch").explore() end, desc = "Open [S]cretch dir in file Explorer" }, +} + +return M