summaryrefslogtreecommitdiff
path: root/lua/telescope/make_entry.lua
AgeCommit message (Collapse)Author
2021-01-04Fix missing global (#384)Senghan Bright
* add selected command to cmd-history * make N_ function global * fix vimoptions description resolution and add color
2021-01-03fix: termopen previewer for powershell (#382)Simon Hauser
2020-12-31fix: tags now work with hasktags (#375)Simon Hauser
2020-12-29feat: All buffer previewers are now async and more config options (#354)Simon Hauser
Configure preview window with: autocmd User TelescopePreviewerLoaded setlocal wrap autocmd User TelescopePreviewerLoaded setlocal number file_maker example: Use regex highlighting for certain filetype like `*min.js` because they slow down things with treesitter highlighter. Just a snippet for tests. We will do an extension :) local previewers = require('telescope.previewers') local putils = require('telescope.previewers.utils') local pfiletype = require('plenary.filetype') local _bad = { '.*%.min%.js' } local bad_files = function(filepath) for _, v in ipairs(_bad) do if filepath:match(v) then return true end end return false end local new_maker = function(filepath, bufnr, bufname, use_ft_detect, callback) if use_ft_detect == nil then use_ft_detect = true end if bad_files(filepath) then previewers.buffer_previewer_maker(filepath, bufnr, bufname, false, callback) local ft = pfiletype.detect(filepath) putils.regex_highlighter(bufnr, ft) else previewers.buffer_previewer_maker(filepath, bufnr, bufname, use_ft_detect, callback) end end require('telescope').setup { defaults = { buffer_previewer_maker = new_maker, } }
2020-12-27feat: all entry_makers are now overridable and icons for builtin.buffers (#364)tamago324
2020-12-19Feat: displayer hl_chars and TelescopeResults hlgroups (#349)Simon Hauser
2020-12-19More colours (#351)Senghan Bright
* add vim hl_groups for autocmds finder * spacing * add displayer/colouring for git_commits * LSP colouring and restore filename for workspace symbols * resolve review issues. * fix: handle 'show_line', 'ignore_filename', 'hide_filename' * fix lsp workspace defaults * allow for setting show_line when ignore filename is true * move lsp_doc_symbol lineinfo to 2nd column * reformat treesitter display to match LSP * use utility functions for setting opts defaults * add fix-me note for unlikely configuration permutation * use hl_chars format for inline lineinfo
2020-12-18Add more colour (#346)Senghan Bright
* add colour to buffers finder * new display function for LSP workspace/doc symbols * add more hl_groups and opts paramter * use make_display() for man_pages finder. * use make_display for registers finder and add color * don't use quickfix make_entry() for builtin finder * make_entry() for builtin finder * remove debug output * revert change to internal.builtin finder * fix_spacing
2020-12-17Update autocmd, highlights and help_tags previewers (#332)Simon Hauser
Also make vim buffer line configurable
2020-12-17feat: add search_dirs opt to builtin.find_files to search from multiple dirs ↵Anirudh Haritas Murali
(#237)
2020-12-13change quickfix make_entry to use column displayer (#331)Senghan Bright
* change quickfix make_entry to use column displayer * fix: don't convert filename to empty string
2020-12-09ci: Add luacheck ci job (#317)Simon Hauser
* Add luacheck ci job * Fix most of the linting issues * fixup: lint Co-authored-by: TJ DeVries <devries.timothyj@gmail.com>
2020-12-03Feat: Displayer now supports highlights for separator and elements (#304)Simon Hauser
Separator Example: When creating the displayer ```lua local displayer = entry_display.create { separator = " ", separator_hl = 'Visual', -- New items = { { width = opts.bufnr_width }, { width = 4 }, { remaining = true }, }, } ``` Elements Example: When submitting data ```lua local hl_group = x == y then 'Normal' or 'Visual' return displayer { entry.bufnr, { entry.indicator, hl_group }, display_bufname .. ":" .. entry.lnum, } ```
2020-12-02new builtin - autocommands (#302)Senghan Bright
* feat: new builtin - Autocommands finder * fix: remove decorators to avoid confusion. * make preview split same hl-group as border * use highlight instead of marker character for preview selection hl
2020-11-26Refactor builtin (#287)Simon Hauser
2020-11-23feat: Buffers rework (indicators and sorting) (#208)Simon Hauser
2020-11-23Register finder (#275)Senghan Bright
builtin: Registers finder. view and edit vim registers.
2020-11-21feat: Add highlights builtin (#267)Simon Hauser
2020-11-16feat: Add tags (#219)Simon Hauser
2020-11-16feat: Add git builtins (#240)Simon Hauser
Conni2461 is a great coder and contributor :)
2020-11-09Rename and simplify make_entry functionNolan Prochnau
2020-11-09Grab helptags from all paths defined in rtpNolan Prochnau
2020-11-02feat: v1 options menu (#133)Senghan Bright
Still has a bunch of improvements that can be done, but wanted to merge in some of the related changes. * options parser * wip: vimoptions finder * feat: pre-populate ex-command line with `:set foo=` * use options current value when populating command line * fix: use result.raw_value to store original option value * . * options: Continue work on option finder * [WIP]: Tue 27 Oct 2020 10:34:09 PM EDT * [WIP]: Mon 02 Nov 2020 08:20:13 PM EST * [WIP]: Mon 02 Nov 2020 09:04:23 PM EST Co-authored-by: TJ DeVries <devries.timothyj@gmail.com>
2020-11-02fix: #211TJ DeVries
2020-10-25feat: Add ability to turn off devicon colorsTJ DeVries
2020-10-24feat: Use colors from nvim-deviconsTJ DeVries
2020-10-15fix: Use entry maker for marksTJ DeVries
2020-10-07feat: Manpages finder (output of apropos) (#134)Senghan Bright
First edition. Sometimes weird things can happen with the previewer, but I think I got it 99% working. * feat: Manpages finder (output of apropos) * fixup: Add previewer and fix comments Co-authored-by: TJ DeVries <devries.timothyj@gmail.com>
2020-10-07feat: Use metatables to use less memory (#152)TJ DeVries
Instead of storing everything in key / value pair hashes, we store as much as possible in an array and then reference the items in the array using metatables. This provides us with a much lower memory footprint and just one level of table lookup indirection (so I think the speed will not be noticeably different)
2020-10-06fix: Reduce memory leaks (#148)TJ DeVries
It is not 100% clear that we've gotten ALL the memory leaks, but it seems much much much better and doesn't look like it's going to die immediately or as often anymore :)
2020-10-04feat: builtin - lua package reloader (#132)Senghan Bright
2020-09-28fix: 126TJ DeVries
2020-09-26fix: use os sepTJ DeVries
2020-09-26Fix issue with trimming path separator '/'Rui Marques
2020-09-25feature: Vim help-tags picker (#117)Senghan Bright
* feature: Vim help-tags picker * fix: filtered results were wrong because of missing `entry.value` * fix: filtered (Vim only help) items are listed in results as empty entries. * fix: avoid search history pollution by replacing / in cmd returned by taglist() with search() * fix: improve search() formatting * fix: escape tilde in search() command * fix: improve help-preview * fix: improve search() * fix: search() string fixes. * fix: use no magic to do magic Co-authored-by: TJ DeVries <devries.timothyj@gmail.com>
2020-09-23fix: small fixes from sunjon (#107)Senghan Bright
* Don't execute `command` if target buffer is already loaded in window. * Print node_text before entry.kind in ordinal string. * Add new builtin for listing and reloading Lua modules. * Revert "Add new builtin for listing and reloading Lua modules." This reverts commit 65d9d0294eae92b347b38b8dcf807fbcdd5783fe.
2020-09-21feat: Trim cwd from bufname if possible (#104)Rui Marques
2020-09-17feat: Improved previewers and cleanupTJ DeVries
2020-09-16feat: Easy Termopen for Previewer (#88)TJ DeVries
First pass, but seems to work. Fixed a few other related items, so pushing it to master now. * [WIP]: Wed 16 Sep 2020 05:17:10 PM EDT * [WIP]: Wed 16 Sep 2020 06:10:33 PM EDT * [WIP]: Wed 16 Sep 2020 06:19:43 PM EDT
2020-09-12feat: Adds shorten_path, show_all_buffers opts and fixes alignment (buffers ↵Simon Hauser
builtin) (#32)
2020-09-12feat: builtin.commands (#54)TimUntersberger
* fix: use correct path separator on windows * fix: add utils.get_separator * asdf * feat: add builtin.commands * change commands sorter * change sorter * change sorter
2020-09-11feat: make buffer work much betterTJ DeVries
2020-09-11feat: Add some more layout optionsTJ DeVries
2020-09-07Begin work on larger global config, to tailor defaultsTJ DeVries
2020-09-06added treesitter builtin (#31)Brian Ryall
* added treesitter builtim * fixed treesitter pr comments * fix the buffer previewer to keep lnum visable
2020-09-05feat: add buffer list (#30) TJ DeVries
NOTE: Buffer entry sometimes uses unstyled window, and I can't figure out why. * feat: add buffers * fixup
2020-09-04fix: Don't push past midnight. You'll make clason's stuff break :/TJ DeVries
2020-09-03feat: Major improvements in API. Particularly relating to entries.TJ DeVries