diff options
| author | Kyren223 <contact@kyren.codes> | 2025-08-26 20:09:12 +0300 |
|---|---|---|
| committer | Kyren223 <contact@kyren.codes> | 2025-08-26 20:09:12 +0300 |
| commit | 970caf177d951ffffbfa18fdb5dfa67dc7927e61 (patch) | |
| tree | 017affaa966aca645f22599b5e389bbb57534357 /.config | |
| parent | 07d085fa11c696bfb335c24afdeff3ec5dc99119 (diff) | |
Removed scratch
Diffstat (limited to '.config')
| -rw-r--r-- | .config/nvim/lua/plugins/snacks.lua | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/.config/nvim/lua/plugins/snacks.lua b/.config/nvim/lua/plugins/snacks.lua index 8d8f9cf..1e508fd 100644 --- a/.config/nvim/lua/plugins/snacks.lua +++ b/.config/nvim/lua/plugins/snacks.lua @@ -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 = { @@ -397,20 +373,6 @@ return { 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() Snacks.terminal(nil, { win = { style = 'minimal' } }) |
