Commit Graph

38 Commits

Author SHA1 Message Date
Luke Kershaw
5809321290 feat: separate higlight for titles in picker windows (#1362)
- requires nvim-lua/plenary.nvim#260
2021-10-26 15:14:33 +01:00
Sávio Carlos Martins Costa
9402484794 fix highlight declaration of 'TelescopePreviewMessageFillchar' (#1290) 2021-09-27 16:07:46 +02:00
fdschmidt93
a6c7498bdc feat: filetype_hook & improved docs; fix preview partial override (#1273) 2021-09-27 15:24:35 +02:00
Sávio Carlos Martins Costa
87471bc3ff feat: add highlight group: TelescopePreviewMessage (#1286)
* feat: add highlight group: TelescopePreviewMessage

* fix indentation from 4 to 2 spaces
2021-09-27 11:59:05 +02:00
Jonathan Teran
81ab591180 fix(command_definition): default to nil on empty <f-args> (#1142) 2021-08-21 11:45:11 +01:00
Jan Steinke
615efe666b Allow range parameters on command parser (#1123) 2021-08-19 19:11:22 +02:00
TJ DeVries
1675d370bf feat: Just straight up error right away for nvim 0.4.4 2021-04-27 17:30:45 -04:00
Senghan Bright
5bd6f5ca98 feat: add icons to git_status finder (#401)
* add icons to git_status finder

* fix lint warning

* fix incorrect removed icon

* refactor, more states/icons

* refactor, widen columns to allow for 3char width icons

* attempted col width fix

* fixup: small comments

Co-authored-by: TJ DeVries <devries.timothyj@gmail.com>
2021-04-09 13:33:10 -04:00
Dmitry
8dc00b08aa fix: add loading guard (#602) 2021-03-04 14:41:50 +01:00
tamago324
20984fc5cd fix: subcommand completion for each extension (#597) 2021-03-03 21:16:15 +08:00
Raphael
677b44d3a0 Enhance Telescope command (#588)
* Enhance Telescope command close #581

* bug fix
2021-03-02 16:34:29 +08:00
Simon Hauser
09d1e3a607 feat: buffer previewers ls is now colorized (#505)
Requires up to date plenary version
2021-02-12 22:30:55 +01:00
Raphael
689dd12385 support custom table type keyword (#450)
* support custom table type keyword

* remove custom split function use vim.split

* remove unused varable fix test

* rewrite get extensions subcommand

* add comment

* remove blankline

* check the param in default options

* revert

* add register keyword function
2021-01-31 19:21:25 +08:00
Alvaro Muñoz
951ede2a70 fix: allow previewer win customization (#460) 2021-01-24 23:53:58 +01:00
Raphael
de80a9837c fix #406 (#407) 2021-01-09 19:35:52 +08:00
Raphael
a089c67483 refactor telescope command (#398)
* refactor telescope command

* addd telescope default options support

* fix variable name wrong

* convert command line string to lua type

* add comment.

* update readme for use theme in commandline

* enhance complete in commandline

* enhance complete in commandline

* enhance covert commandline options
2021-01-08 01:47:46 +01:00
Cedric M'Passi
9503603f88 feat: Add highlight to builtin.git_status (#388) 2021-01-04 23:04:58 +01:00
Raphael
5d121ee58c feat: add extension in telescope command (#380) 2021-01-04 13:00:54 +01:00
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