Removed scratch

This commit is contained in:
2025-08-26 20:09:12 +03:00
parent 07d085fa11
commit 970caf177d

View File

@@ -188,30 +188,6 @@ return {
},
picker = {},
quickfile = {},
scratch = {
filekey = { branch = false },
ft = function()
return 'markdown'
end,
win = {
style = 'scratch',
keys = {
['reset'] = {
'<M-r>',
function(self)
local file = vim.api.nvim_buf_get_name(self.buf)
Snacks.bufdelete.delete(self.buf)
os.remove(file)
local name = 'scratch.' .. vim.fn.fnamemodify(file, ':e')
Snacks.notify.info('Deleted ' .. name)
end,
desc = 'Reset',
mode = { 'n', 'x' },
},
},
},
},
terminal = {
win = {
keys = {
@@ -396,20 +372,6 @@ return {
end,
desc = '[R]e[n]ame',
},
{
'<leader>.',
function()
Snacks.scratch()
end,
desc = 'Toggle Scratch Buffer',
},
{
'<leader>S',
function()
Snacks.scratch.select()
end,
desc = 'Select [S]cratch Buffer',
},
{
'<C-t>',
function()