Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/n-shift/scratch.nvim


https://github.com/n-shift/scratch.nvim

Last synced: 11 days ago
JSON representation

Lists

README

        

# scratch.nvim
scratch.nvim is a plugin for evaluating interpretable code inside `scratch` buffer

## supported languages
- lua
- python
- javascript (node)
- typescript (tsnode)

## usage
- `:ScratchNew ` - create new `scratch` buffer
- `:ScratchEval` - eval current `scratch` buffer

## telescope picker

before using picker, load `scratch.nvim` telescope extenstion
```lua
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