A simple Neovim plugin to execute a build command with optional prefix and suffix.
- Execute a custom build command
- Option to run the build command on file save
- Configurable keybinding
- Integration with Neovim's notification system
Using packer.nvim:
use {
'gashon/buildfix.nvim',
config = function()
require('buildfix').setup()
end
}
Using lazy.nvim:
{
'gashon/buildfix.nvim',
config = true
}
Default configuration:
require('buildfix').setup({
command = "buildfix",
suffix = "",
fix_on_save = false,
keymap = "<leader>bf",
})
- Use the
:Buildfix
command to execute the build command - Use the configured keymap (default:
<leader>bf
) to execute the build command - If
fix_on_save
is set totrue
, the build command will run on each file save
require('buildfix').setup(opts)
Configures the plugin. opts
is a table with the following fields:
command
(string): The build command to executesuffix
(string): Suffix to append to the commandfix_on_save
(boolean): Whether to run the command on file savekeymap
(string): Keymap to execute the build command
This project is licensed under the APACHE License - see the LICENSE file for details.