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: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/n-shift/scratch.nvim
- Owner: n-shift
- License: agpl-3.0
- Created: 2022-02-21T18:00:50.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-02-22T11:58:21.000Z (over 2 years ago)
- Last Synced: 2024-06-17T21:52:08.187Z (3 months ago)
- Language: Lua
- Size: 17.6 KB
- Stars: 31
- Watchers: 2
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
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 filetypeto change filetype you can call `:Telescope scratch ft` and pick new filetype