scratch.nvim is a plugin for evaluating interpretable code inside scratch
buffer
- lua
- python
- javascript (node)
- typescript (tsnode)
:ScratchNew <filetype>
- create newscratch
buffer:ScratchEval
- eval currentscratch
buffer
before using picker, load scratch.nvim
telescope extenstion
require("telescope").load_extension("scratch")
after that, you can do :Telescope scratch
and create scratch buffer with specified filetype
to change filetype you can call :Telescope scratch ft
and pick new filetype