diff options
| author | TJ DeVries <devries.timothyj@gmail.com> | 2020-09-03 23:56:49 -0400 |
|---|---|---|
| committer | TJ DeVries <devries.timothyj@gmail.com> | 2020-09-03 23:56:49 -0400 |
| commit | 839f57efb37cba7a9542b67b31370e1babaf194a (patch) | |
| tree | 2e502a58d83bc528e78b3d44d92134ec96d1345a /lua/telescope/entry.lua | |
| parent | 737363097b8710566cf624776f1d0a18c03a0d8b (diff) | |
feat: Major improvements in API. Particularly relating to entries.
Diffstat (limited to 'lua/telescope/entry.lua')
| -rw-r--r-- | lua/telescope/entry.lua | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/lua/telescope/entry.lua b/lua/telescope/entry.lua deleted file mode 100644 index 97b5414..0000000 --- a/lua/telescope/entry.lua +++ /dev/null @@ -1,27 +0,0 @@ -local Entry = {} -Entry.__index = Entry - --- TODO: Can we / should we make it so that "display" and "ordinal" are just values, instead of functions. --- It seems like that's what you'd want... No need to call the functions a million times. - --- Pass in a table, that contains some state --- Table determines it's ordinal value -function Entry:new(line_or_obj) - if type(line_or_obj) == "string" then - return setmetatable({ - valid = line_or_obj ~= "", - - value = line_or_obj, - ordinal = line_or_obj, - display = line_or_obj, - }, self) - else - return line_or_obj - end -end - -function Entry:__tostring() - return "<" .. self.display .. ">" -end - -return Entry |
