Skip to content

scott-astatine/Executer.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

Executer.nvim

This is a simple project executer for NeoVim written in lua

This plugin has default support for multiple languages and tools. And you can customize you project's build/run cmd by generating .ExecuterConf.json file.

Install with packer

use 'scott-astatine/Executer.nvim'

How to use this plugin?

require('Executer.nvim').runProject() -- To run the project.
require('Executer.nvim').buildProject() -- To build your project.
require('Executer.nvim').generateConfig() -- Genetates json config file with default config that you can use to provide your own run/build cmd.

Kemaps

local ops = {noremap = true, silent = true}
local keymap = vim.api.nvim_set_keymap

keymap('n', '<leader>lr', ':lua require('Executer.nvim').runProject()', ops)
keymap('n', '<leader>lb', ':lua require('Executer.nvim').buildProject()', ops)
keymap('n', '<leader>lg', ':lua require('Executer.nvim').generateConfig()', ops)

or.. if you use WhichKey then

//... other WhichKey keymappings

l = {
    name = "LangSpec",
    r = {"<cmd>lua require('Executer').runProject()<cr>", "Run Project"},
    b = {"<cmd>lua require('Executer').buildProject()<cr>", "Build Project"},
    g = {"<cmd>lua require('Executer').generateConfig()<cr>", "Gen Project run/build conf"},
}
//... maps

About

A simple project executer for NeoVim.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages