summaryrefslogtreecommitdiff
path: root/lua/telescope/previewers.lua
AgeCommit message (Collapse)Author
2020-12-19Refactor previewers (#345)Simon Hauser
2020-12-17Fix builtin.builtin again and add TelescopePreviewMatch hlgroup (#342)Simon Hauser
2020-12-17Update autocmd, highlights and help_tags previewers (#332)Simon Hauser
Also make vim buffer line configurable
2020-12-17Fix: Use plenary.filetype.detect and remove own filetype detect (#326)Simon Hauser
requires newest plenary.nvim version or you will have a bad day
2020-12-15fix: typo (#339)eth3lbert
2020-12-10fix: fix non escaped bat theme (#319)Alessandro Martini
When a bat theme contained spaces it would crash the bat previewer as described in #318.
2020-12-10Fix: filetype guesser (#321)Simon Hauser
2020-12-09fix: Don't require ts at mod levelTJ DeVries
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-09Feat: Opt in vim buffers for previewers (#298)Simon Hauser
Enable with: require('telescope').setup { defaults = { file_previewer = previewers.vim_buffer_cat.new, grep_previewer = previewers.vim_buffer_vimgrep.new, qflist_previewer = previewers.vim_buffer_qflist.new, } }
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-28Fix builtin.builtin for lsp and git modules (#300)Simon Hauser
2020-11-28Remove less from default termopen_env (#295)Simon Hauser
2020-11-26Refactor builtin (#287)Simon Hauser
2020-11-23feat: Buffers rework (indicators and sorting) (#208)Simon Hauser
2020-11-22Various previewer fixes (#260)Simon Hauser
- Set env vars for previewer with set_env({ key = value } fix #228) - Set pager for git previewes (default is GIT_PAGER=less so users can scroll see #253) - Use less for people who don't have bat but less installed - Reset less env to only '-RS' because '-X' will break scrolling(fix #253, thanks @eth3lbert) - Scrolling for buffer previewer(thanks @tami5 for helping) - Also new function to create buffer previewers (which has scrolling by default). Used for tags and help_tags previewer. - Add new setting set_env to readme
2020-11-21feat: Add highlights builtin (#267)Simon Hauser
2020-11-16Fix #250 (#251)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-16Delete more debug thingsNolan Prochnau
2020-11-15Delete debug outputNolan Prochnau
2020-11-15Refactor to make logic less intenseNolan Prochnau
2020-11-15Manually search through tagsNolan Prochnau
Probably slower, but the builtin `taglist()` only looks at the first file in 'tags', not ideal for this application. This can probably be cleaned up a little.
2020-11-15Have plugin tags previewedNolan Prochnau
Still doesn't update for multiple files, but the first file in the taglist is shown, so that's a start?
2020-11-13fix: Multiple Previewer fixes (#225)Simon Hauser
Fixes previews for files beginning with ~/ Previewer will now show directories Fix if clause with vim.fn.executable
2020-11-05Cat will no longer display binary files (#224)Simon Hauser
2020-10-28feat: Get BAT_THEME var from environment (#200)Spencer Gilbert
Closes: #196
2020-10-10fix: Clason is a miracle worker (#172)Christian Clason
Adds the `-R` flag to `less` for the other code path as well, which is called for `grep` and `workspace_symbols`.
2020-10-09fix: Use R for less so it's not badTJ DeVries
2020-10-09fix: Add 'use_less' config valueTJ DeVries
2020-10-08fix: Do not wrap lines and allow scrolling in ranged optionsTJ DeVries
2020-10-07Fix help preview and add highlighting to search result (#124)Senghan Bright
* fix: make sure that `$VIMRUNTIME/doc/tags` is in `tags` path * feat: highlight matched topic in helptags preview * fixup: Use previewer setup and teardown Co-authored-by: TJ DeVries <devries.timothyj@gmail.com>
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-04fix: Pass --paging=always to bat (#142)Kamal Marhubi
This gets rid of a slightly annoying difference between files that fit in the preview pane and ones that don't: hitting the scroll-preview mappings would complain about a closed stream. Always using the pager ensures there's always a process at the other end, even if asking it to scroll doesn't actually do anything.
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-24wip: Add some stuff for nvim_fileTJ DeVries
2020-09-23fix: adding a nil check to self.state when the window is too narrow for a ↵Fahad RIaz
preview (#110)
2020-09-17feat: Improved previewers and cleanupTJ DeVries
2020-09-17fix: Add nil checks for state when preview hasn't been initialized yet (#92)Corentin Brunel
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-16fix: use double dash to fix special filenames (#87)Oleg Matrokhin
Co-authored-by: Oleg Matrokhin <o.matrohin@softpro.com>
2020-09-16feat: add scrolling in preview window (#47)haorenW1025
* feat: add scrolling in preview window refactor into two layers * remove redundant code * add error message for scroll_fn and send_input * consider count for preview scrolling
2020-09-11nit: Always set a stateTJ DeVries
2020-09-11feat: make buffer work much betterTJ DeVries
2020-09-09fix: don't accidentally mess with stateTJ DeVries
2020-09-07fix: set some opts for batTJ DeVries
2020-09-07fix: Close termopen jobs when doneTJ DeVries
TODO: Still need to fix the rest of em. And I see lots of repeated code... we will need to fix that. Also adjusted some bat options.
2020-09-06View the planets (#12)smolck
* add planets viewer builtin * Remove print statement * Don't use fzf & echo * Add all planets as files and refactor accordingly * Remove planets.lua * add the moon * example ofe how to do this without ls everywhere * fix rebase and update to new style Co-authored-by: TJ DeVries <devries.timothyj@gmail.com>
2020-09-06added treesitter builtin (#31)Brian Ryall
* added treesitter builtim * fixed treesitter pr comments * fix the buffer previewer to keep lnum visable