A lightweight scratch file manager for Neovim.
Installation
Using nvim-plug
require('plug').add({ { 'wsdjeg/scratch.nvim' } })
Then use :Plug install scratch.nvim to install this plugin.
Setup
require('scratch').setup({ directory = '~/.scratch', buflisted = false, })
Basic usage
Create new scratch file:
vim.keymap.set('n', '<leader>bs', function() require('scratch').create({}) end, { silent = true })
Create scratch file without filename, which will no be saved to disk:
require('scratch').create({ nofile = true, filetype = 'python', })
Integration with picker.nvim
scratch.nvim provides a picker.nvim source to fuzzy find scratch files.
:Picker scratch
Self-Promotion
Like this plugin? Star the repository on GitHub.
Love this plugin? Follow me on GitHub.
License
This project is licensed under the GPL-3.0 License.