- Lightwight and fast
- Running with float window
- Support multiple languages
lazy.nvim
{
"Kicamon/running.nvim",
lazy = true,
cmd = "Run",
config = function()
require('running').setup()
end
}
vim-plug
Plug "Kicamon/running.nvim", {['on'] = 'Run' }}
lua require('running').setup()
open | description |
---|---|
Run |
Open fLoat window at right ahd running |
Run center |
Open fLoat window at center ahd running |
defualt config
require('running').setup({
commands = require('running.commands'),
win = {
defualt = {
width = -0.25,
height = 0.9,
row = 't',
col = 'r',
},
center = {
width = 0.8,
height = 0.8,
row = 'c',
col = 'c',
},
},
})
require('running').setup({
commands = {
['c'] = {
command = {
'gcc "$filename" -o "$runfile"',
'./"$runfile"',
},
},
['html'] = {
command = 'live-server',
modus = 'job', -- run a shell command
},
['markdown'] = {
command = 'MarkdownPreview',
modus = 'cmd', -- execute a vim command
}
}
})