https://github.com/wsdjeg/code-runner.nvim
Async Code Runner for Neovim
https://github.com/wsdjeg/code-runner.nvim
neovim-plugin
Last synced: 24 days ago
JSON representation
Async Code Runner for Neovim
- Host: GitHub
- URL: https://github.com/wsdjeg/code-runner.nvim
- Owner: wsdjeg
- License: gpl-3.0
- Created: 2025-02-26T16:18:08.000Z (3 months ago)
- Default Branch: master
- Last Pushed: 2025-04-13T11:48:37.000Z (about 1 month ago)
- Last Synced: 2025-04-13T12:37:13.473Z (about 1 month ago)
- Topics: neovim-plugin
- Language: Lua
- Homepage:
- Size: 31.3 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# code-runner.nvim
Async Code Runner for Neovim

* [Installation](#installation)
* [Setup](#setup)
* [Usage](#usage)
* [APIs](#apis)## Installation
With nvim-plug:
```lua
require("plug").add({
{
"wsdjeg/code-runner.nvim",
depends = {
{ "wsdjeg/job.nvim" },
{ "wsdjeg/notify.nvim" },
},
},
})
```## Setup
```lua
require("code-runner").setup({
runners = {
lua = { exe = "lua", opt = { "-" }, usestdin = true },
},
enter_win = false,
})
```## Usage
1. start default runner for current filetype:
```
lua require('code-runner').open()
```2. run specific command with code-runner:
```
lua require('code-runner').open('make test')
```## APIs
- `close()`: close code runner window
- `get(ft)`: get default runner for specific filetype