Commit Graph

20 Commits

Author SHA1 Message Date
Simon Hauser
1d40ab5ccd feat: All buffer previewers are now async and more config options (#354)
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-29 21:05:59 +01:00
Simon Hauser
2488e31df8 Feat: displayer hl_chars and TelescopeResults hlgroups (#349) 2020-12-19 21:13:05 +01:00
Simon Hauser
e5155a4aa3 Fix builtin.builtin again and add TelescopePreviewMatch hlgroup (#342) 2020-12-17 16:58:48 +01:00
Simon Hauser
f078d149a1 Update autocmd, highlights and help_tags previewers (#332)
Also make vim buffer line configurable
2020-12-17 15:58:38 +01:00
tamago324
823f881998 Filter the completion of the command (#279) 2020-11-23 11:35:07 -05:00
Raphael
1f3110bf54 Feat: convert options if it is table type in lua (#220)
* support custom list type commands

* update  command usage
2020-11-03 08:04:55 -05:00
Raphael
54ef9d90d5 rewrite command of telescope (#197)
* rewrite command of telescope

* add complete support

* add comment

* rewrite get builtin list

* Update README.md

* use vim.tbl_keys function

* rewrite complete-list
2020-11-01 11:08:54 -05:00
TJ DeVries
5aa20f1f54 feat: turn on matching colors by default, since people do not know about it 2020-10-24 22:59:01 -04:00
Raphael
18a91f2714 Add Colorscheme and Marks Support and Telescope Commands (#167)
* Add Telescope Commands

* Add Colorscheme support

* Add Command for coloscehme

* add marks support

* rename commad
2020-10-12 09:38:34 -04:00
Alvaro Muñoz
6af6b4e5fd feat: prompt_prefix option (#154)
* enable prompt_prefix option

* add hl and default value

* default hl and prefix

* fixup: move the redraw til after prompt create

* fixup: nits

Co-authored-by: TJ DeVries <devries.timothyj@gmail.com>
2020-10-08 13:34:59 -04:00
Alvaro Muñoz
c414e5f869 feat: Add highlight for selection caret (#135)
* Add highlight for selection caret

* add default hl

* remove highlight overlap
2020-10-02 11:26:11 -04:00
TJ DeVries
ae7fd0d27a feat: Add status, better debug, and some associated refactors
* [WIP]: Mon 28 Sep 2020 01:08:24 PM EDT

* add much much better tracking. so much less hax

* status updates, oneshot job updates, etc.

* remove temp function

* add status function

* asdfasdfasdf
2020-09-29 22:52:38 -04:00
TJ DeVries
64207a21c2 feat: Add TelescopeMatching a new highlight for matches from sorters 2020-09-26 12:05:32 -04:00
TJ DeVries
f449c0499c feat: Better border configuration.
Started adding `resolve` which will allow you to do some really nice
stuff easily with options to get the window options from a variety of
inputs.

You can see how we do it in pickers.lua for borders & borderchars
currently.
2020-09-12 14:56:58 -04:00
TJ DeVries
402d8f1b6a fix: make begin proff 2020-09-11 11:21:09 -04:00
TJ DeVries
31f2e9139c temp: add PERF 2020-09-11 00:18:54 -04:00
TJ DeVries
b04ec331c4 feat: Add cool mapping for <C-R> in command mode 2020-09-03 11:18:08 -04:00
TJ DeVries
4ac50c68ca wip: new sorters 2020-09-01 20:51:41 -04:00
TJ DeVries
ae9b769299 feat: Add selection and start actions 2020-08-29 22:15:40 -04:00
TJ DeVries
69d4cd3899 Initial commit after stream 2020-07-15 00:05:14 -04:00