Skip to content

Nanoteck137/scorbunny.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

Repository files navigation

scorbunny.nvim

Neovim plugin to easily execute compile command and see the result

Getting Started

Installation

Using packer.nvim

use 'nanoteck137/scorbunny.nvim'

Using vim-plug

Plug 'nanoteck137/scorbunny.nvim'

Usage

Setup

-- Default options
require('scorbunny').setup {}

-- Options
require('scorbunny').setup {
    zindex = 49, -- The zindex of the window, we use 49 so that notifications from the 'rcarriga/nvim-notify' plugin show on top of command window

    notify = true, -- Disable notifications from the plugin, doesn't disable error notifications

    -- Callback for when the job is done
    on_job_done = function()
        print("Exit Code", require('scorbunny').job.exit_code)
    end
}

Example Usage

-- Execute any command and open the window with the command output
require('scorbunny').execute_cmd(cmd)

-- Kill the current executing command
require('scorbunny').kill()

-- Open the window with the command output
require('scorbunny').open_window()

Examples

require('scorbunny').execute_cmd('cargo build')

TODO(patrik): Add better examples

Authors

Patrik Millvik Rosenström patrik.millvik@gmail.com

License

This project is licensed under the MIT License - see the LICENSE file for details

About

Neovim plugin to easily execute compile command and see the result

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages