aboutsummaryrefslogtreecommitdiff
path: root/lua/cmake-explorer/telescope/make_entry.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/cmake-explorer/telescope/make_entry.lua')
-rw-r--r--lua/cmake-explorer/telescope/make_entry.lua57
1 files changed, 0 insertions, 57 deletions
diff --git a/lua/cmake-explorer/telescope/make_entry.lua b/lua/cmake-explorer/telescope/make_entry.lua
deleted file mode 100644
index cc919bd..0000000
--- a/lua/cmake-explorer/telescope/make_entry.lua
+++ /dev/null
@@ -1,57 +0,0 @@
-local make_entry = require("telescope.make_entry")
-local entry_display = require("telescope.pickers.entry_display")
-local config = require("cmake-explorer.config")
-
-local M = {}
-
-M.gen_from_configure = function(opts)
- local project = require("cmake-explorer").project
- local displayer = entry_display.create({
- separator = " ",
- items = {
- { width = project.display.short_len + 5 },
- { remaining = true },
- },
- })
- local make_display = function(entry)
- vim.print(entry)
- return displayer({
- { entry.value.display.short, "TelescopeResultsIdentifier" },
- { entry.value.display.long, "TelescopeResultsComment" },
- })
- end
- return function(entry)
- return make_entry.set_default_entry_mt({
- value = entry,
- ordinal = table.concat(entry.short, config.variants_display.short_sep),
- display = make_display,
- }, opts)
- end
-end
-
-M.gen_from_build = function(opts)
- local project = require("cmake-explorer").project
- local displayer = entry_display.create({
- separator = " ",
- items = {
- { width = project.display.short_len + 5 },
- { remaining = true },
- },
- })
- local make_display = function(entry)
- vim.print(entry)
- return displayer({
- { entry.value.display.short, "TelescopeResultsIdentifier" },
- { entry.value.display.long, "TelescopeResultsComment" },
- })
- end
- return function(entry)
- return make_entry.set_default_entry_mt({
- value = entry,
- ordinal = table.concat(entry.short, config.variants_display.short_sep),
- display = make_display,
- }, opts)
- end
-end
-
-return M