Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fagci/runfile.nvim
Run current opened file
https://github.com/fagci/runfile.nvim
neovim neovim-lua-plugin neovim-plugin neovim-run-file
Last synced: about 1 month ago
JSON representation
Run current opened file
- Host: GitHub
- URL: https://github.com/fagci/runfile.nvim
- Owner: fagci
- License: mit
- Archived: true
- Created: 2022-05-31T20:03:59.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-02-18T09:08:20.000Z (over 1 year ago)
- Last Synced: 2024-06-25T22:39:52.803Z (3 months ago)
- Topics: neovim, neovim-lua-plugin, neovim-plugin, neovim-run-file
- Language: Lua
- Homepage:
- Size: 18.6 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# runfile.nvim
`NOTE: use make command instead with makeprg`
Run current opened file
## Install
Packer
```lua
use 'fagci/runfile.nvim'
```## Usage
### Simple
As command
```
:RunFile
```As lua code
```
:lua require('runfile').run()
```### With parameters
As command
```
:RunFile -f value
```As lua code
```
:lua require('runfile').run({'-f', 'value'})
```## Example setup using packer
Applied over [default mappings](https://github.com/fagci/runfile.nvim/blob/main/lua/runfile/init.lua)
```lua
use {
'fagci/runfile.nvim',
config = function()
require('runfile').setup({
mappings = {
['zsh'] = 'zsh {f} {a}'
}
})
end
}
```### Expansions
File path parts (expanded '%')
- {f} file path
- {p} full path
- {h} head (last path component removed)
- {t} tail (last path component only)
- {r} root (one extension removed)
- {e} extension onlyArguments
- {a} arguments
## Supported filetypes
- applescript
- elixir
- erlang
- ghci
- go
- idris
- java
- javascript
- lua
- moon
- perl
- php
- python
- ruby
- sh