Skip to content

code runner based off of Makefiles because it's the easiest and one of the most common formats.

License

Notifications You must be signed in to change notification settings

burgr033/mf-runner.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mf-runner.nvim

mf-runner.nvim is a simple and easy runner for makefiles.

Install

Lazy

{
        "burgr033/mf-runner.nvim",
        cmd = { "MFROpen", "MFRRun", "MFREdit" },
        dependencies = {
            "nvim-telescope/telescope.nvim",
            "akinsho/toggleterm.nvim"
        },
        opts = {},
},

Configuration

no configuration needed. You need a Makefile in your current cwd.

Commands

  • :MFROpen opens a telescope picker for the targets in the detected Makefile

  • :MFRRun can be used to tab through specific Makefile targets without the use of telescope. If you use generic targets, you could use it for |mf-runner-mappings|

  • MFREdit not yet implemented, will be used to edit the detected Makefile. Or if none is detected will open a new Buffer for creating one.

Mappings

If you use generic build targets you could just map e.g.

vim.keymap.set('n', '<leader>mf', 'MFRRun build')

Motivation

I was looking through so many different code-runner plugins which were either

  1. too complicated for my use cases (overseer.nvim, compiler.nvim, etc...)
  2. were not really os independant (path escaping etc.)
  3. were configured in the neovim config and not in the project itself

About

code runner based off of Makefiles because it's the easiest and one of the most common formats.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages