Commit graph

56 commits

Author SHA1 Message Date
Christian Clason
0c12735d5a
fixup: adapt to deprecations in Nvim 0.10 (#3113)
vim.iter.flatten() is not a full replacement (does not support arrays
with `nil`); a fix may be backported but for now only use it on nightly
(0.10 has no warnings yet).
2024-05-17 20:02:19 +02:00
Christian Clason
33f04c3a86
fixup: adapt to deprecations in Nvim 0.10 (#3112) 2024-05-17 18:10:21 +02:00
Christian Clason
bbdbb7593f
fix: adapt to Nvim deprecations in 0.10 (#3109) 2024-05-17 14:39:12 +02:00
Juan Barrios
8dd1cb2771
feat: sorting popup autocomplete items and initial builtin items (#2518) 2023-05-24 11:03:07 +02:00
Christian Clason
d8c5ed4e40
feat(ts)!: use upstream treesitter implementation (#2499)
bumps minimum required neovim version to 0.9, see `help telescope.changelog-2499`
2023-05-24 10:43:04 +02:00
Jerry Wang
d95a8125bb
fix: some builtin functions missing in completion list (#2464)
if there is extension_list, then the builtin_list would be replaced/overriden. e.g. if there are 3 items in extension_list, then first 3 items in builtin_list would be replaced when you type
`:Telescope fi` and press tab to get completion list.
2023-04-23 14:39:22 +02:00
Antoine Bertin
5fadc247c5
fix: selected icon highlight with color_devicons to false (#2187) 2022-10-08 09:10:26 +02:00
Simon Hauser
e7e90466de
break: remove lsp code actions (#1866)
see :help telescope.changelog-1866 for more information
2022-04-25 22:52:00 +02:00
Simon Hauser
5045d7e5e7
feat: switch to telescope.lua (#1873)
Co-authored-by: Christian Clason <christian.clason@uni-due.de>
2022-04-25 22:34:42 +02:00
kylo252
cc1a3440f9
fix: fix keep insert when going from telescope window to telescope window (#1600)
Also fixes `initial_mode`

Co-authored-by: Simon Hauser <Simon-Hauser@outlook.de>
2022-04-22 16:13:32 +02:00
Simon Hauser
5a58b1f535
break: bump minimum required neovim version to 0.7 (#1851) 2022-04-22 16:08:56 +02:00
Antoine Bertin
6e7ed1b963
feat: add default hl group for devicons (#1849) 2022-04-18 14:05:57 +02:00
Luke Kershaw
f285599440
feat: multiselect icon (#1572)
* feat: add `multi_icon` option to pickers and corresponding highlight

* feat: allow `multi_icon` to be any length

* fix: adjust `selection_caret` highlighting
2022-01-05 22:42:29 +00:00
Simon Hauser
61240ac75a
break: bump the minimum required neovim version to 0.6 or higher (#1549)
So we can use `vim.json` and `vim.diagnostics`.

If you aren't able to update to 0.6.* yet you should pin the previous commit.
2021-12-10 16:32:28 +01:00
Simon Hauser
4e075bf924
feat: highlight group for counter: TelescopePromptCounter
fix #1540
2021-12-03 14:36:32 +01:00
max397574
c1951b3722
add Normal highlights for prompt and results (#1514)
* feat(highlight): add Normal highlights for prompt and results

* fix(highlight): link to TelescopeNormal by default
2021-11-29 21:47:19 +00:00
Luke Kershaw
22198ea588
docs: add a changelog entry for updated version requirements (#1444)
- also updates the error message to point to it
2021-11-13 11:17:15 +00:00
Julian Fricker
6a8fbb53e0
breaking: bump nvim version requirement to 0.5.1 (#1406) 2021-11-04 07:20:17 +01:00
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