Simple telescope extension to run GNU Make targets in Neovim.
👍Supports GNU/BSD make
Requires the akinsho/nvim-toggleterm.lua plugin for now.
For LunarVim, in your config.lua:
lvim.plugins = {
{
"ptethng/telescope-makefile",
},
}
require'telescope'.load_extension('make')
:Telescope make
Default:
require'telescope-makefile'.setup{
-- The path where to search the makefile in the priority order
makefile_priority = { '.', 'build/' }
default_target = '[DEFAULT]', -- nil or string : Name of the default target | nil will disable the default_target
make_bin = "make", -- Custom makefile binary path, uses system make by def
}
Example keybinding in LunarVim and which-key:
lvim.builtin.which_key.mappings.M = {
"<cmd>Telescope make<cr>",
"Make Targets",
}