mf-runner.nvim
is a simple and easy runner for makefiles.
{
"burgr033/mf-runner.nvim",
cmd = { "MFROpen", "MFRRun", "MFREdit" },
dependencies = {
"nvim-telescope/telescope.nvim",
"akinsho/toggleterm.nvim"
},
opts = {},
},
no configuration needed. You need a Makefile in your current cwd.
-
: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.
If you use generic build targets you could just map e.g.
vim.keymap.set('n', '<leader>mf', 'MFRRun build')
I was looking through so many different code-runner plugins which were either
- too complicated for my use cases (overseer.nvim, compiler.nvim, etc...)
- were not really os independant (path escaping etc.)
- were configured in the neovim config and not in the project itself