Skip to content

Instantly share code, notes, and snippets.

@nilsherzig
nilsherzig / picker.lua
Created January 27, 2024 20:43
Makefile target picker for neovim and telescope
local Path = require("plenary.path")
local pickers = require("telescope.pickers")
local finders = require("telescope.finders")
local conf = require("telescope.config").values
local action_state = require("telescope.actions.state")
local function extract_makefile_targets()
local targets = {}
local makefile_path = Path:new("Makefile")