Skip to content

Latest commit

 

History

History
82 lines (72 loc) · 1.42 KB

README.md

File metadata and controls

82 lines (72 loc) · 1.42 KB

running.nvim

  • Lightwight and fast
  • Running with float window
  • Support multiple languages

Screenshot

demo

Install

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()

command

open description
Run Open fLoat window at right ahd running
Run center Open fLoat window at center ahd running

Configuration

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',
    },
  },
})

Set Language command

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
    }
  }
})

License MIT