Skip to content

sopa0/telescope-makefile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 

Repository files navigation

telescope-makefile

Simple telescope extension to run GNU Make targets in Neovim.

👍Supports GNU/BSD make

Requires the akinsho/nvim-toggleterm.lua plugin for now.

Demonstration

Demo gif

Install

For LunarVim, in your config.lua:

lvim.plugins = {
  {
    "sopa0/telescope-makefile",
  },
}

Installation

require'telescope'.load_extension('make')

Usage

:Telescope make

Configuration

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",
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages