Commit Graph

168 Commits

Author SHA1 Message Date
Raphael
779704bf26 Add user autocmd TelescopeFindPre (#491)
* Add user autocmd Telescope

* change name to TelescopeFindPre

* update Readme for Telescope user autocmds
2021-02-02 23:23:28 -05:00
Simon Hauser
9e76b1613a fix: remove env workaround for term_previewer (#482)
Also fixes #484
2021-02-01 14:50:01 +01:00
Peacock
fc54211868 Correct missing comma #485 (#487) 2021-02-01 18:10:23 +07:00
Gustavo Sampaio
ef3262f94a readme: Add new community extension: asynctasks (#483) 2021-01-31 22:32:31 +03:00
David Begin
0ae5991385 Improves documentation by fixing spelling mistake (#475)
If you're reading this, then you know begin doesn't deserver hacktoberfest cred.
2021-01-29 11:14:48 -05:00
anott03
5995a8be8f Undo #465 (#469)
We have broke all extension that do some sort of goto_file_selection:replace

Problem described here: https://github.com/nvim-telescope/telescope.nvim/pull/465#issuecomment-767831897
Possible solution: https://github.com/nvim-telescope/telescope.nvim/pull/465#issuecomment-767808213
2021-01-27 17:22:11 +01:00
anott03
ccbb7f5638 fix: move to actions.select as default action (#465) 2021-01-25 19:20:01 +01:00
Dave Lage
b82d6a7cba fix: Treesitter link in README to correct section 2021-01-19 15:46:55 -05:00
wordhou
7e241aa0a4 feat: Add option to set initial_mode (#442) 2021-01-17 23:09:23 -05: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
Senghan Bright
dda5b44b94 Spell suggestions (#399)
* feat: spell suggest picker

* set correct window title

* add entry to readme
2021-01-06 14:57:14 +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
Sebsatian Keller
1e7ef41c70 fix: README example configuration (#357)
Both `find_files()` and `help_tags()` were bound to `<leader>ff`. This resulted in <leader>ff not opening the `find_files()` dialog
2020-12-21 23:05:17 +03:00
Dave Lage
d5ee177306 Capitalize supported items 2020-12-11 00:50:04 -05:00
Dave Lage
77e8125ef5 Fix files link 2020-12-10 18:57:27 -05:00
Dave Lage
aa18920fc7 Add Example for pickers 2020-12-10 18:56:58 -05:00
Dave Lage
8661d0d0cc Upgrade Usage to main section 2020-12-10 18:46:04 -05:00
Dave Lage
9568d01fcf Move buffer lists to vim section 2020-12-10 18:44:24 -05:00
Dave Lage
466ee510bf Add links to sections in intro. 2020-12-10 18:40:06 -05:00
Dave Lage
328743ff5d Fix treesitter table 2020-12-10 18:39:10 -05:00
Dave Lage
be077b959f Formatting 2020-12-10 18:38:17 -05:00
Dave Lage
b4b4c7652d Make smaller targetable lists for pickers 2020-12-10 18:37:17 -05:00
Dave Lage
3a416f552b Extend context in intro. 2020-12-10 18:18:07 -05:00
Dave Lage
82722104d7 Update pickers links 2020-12-10 17:20:53 -05:00
Dave Lage
76cafdd2e6 Use lowercase to be consistent 2020-12-10 17:17:06 -05:00
Dave Lage
137bf550fc Use local extensions section. 2020-12-10 17:16:11 -05:00
Dave Lage
93ebe0a47d Update link for pickers 2020-12-10 17:15:17 -05:00
Dave Lage
9aa11dd30a Lots of README changes (#324)
* Lots of README changes

* fix: Grammar

* Re-order pickers/extensions
2020-12-10 17:14:32 -05:00
Dave Lage
b3f41c8edd List all nvim-telescope extensions. 2020-12-10 14:39:12 -05:00
Eli Flanagan
06db1b6288 fix typo (#322) 2020-12-10 10:40:16 -05:00
Simon Hauser
df6b762b31 Feat: symbols json picker (#303) 2020-12-10 09:22:46 +01:00
Simon Hauser
c276db06e2 Feat: Opt in vim buffers for previewers (#298)
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-09 16:58:22 +01:00
Raphael
2fd09b9293 add new gif to show telescope.nvim (#306) 2020-12-01 21:29:16 -05:00
Senghan Bright
5595c2b57b add autocommands finder to readme 2020-12-02 00:32:25 +01:00
Senghan Bright
b1d436ce92 update readme to include packer extension 2020-12-01 23:56:43 +01:00
tami5
07ce3c341a Update README.md 2020-11-29 03:15:43 +03:00
tami5
3c881196ca Update README.md: add new preview
by @glepnir
2020-11-29 03:14:31 +03:00
windwp
16f11b6c27 feat: add lsp range code actions (#297)
https://github.com/neovim/neovim/pull/12962

authored by: @windwp
2020-11-28 09:16:17 +03:00
tami5
3c8bb1afcc Add gitter tag 2020-11-23 20:32:30 +03:00
Simon Hauser
863328a96d feat: Buffers rework (indicators and sorting) (#208) 2020-11-23 10:11:46 -05:00
TJ DeVries
2ac0582c06 feat: v0.1 of extensions (#278) 2020-11-23 09:29:10 -05:00
Senghan Bright
124655608f Register finder (#275)
builtin: Registers finder. view and edit vim registers.
2020-11-23 11:07:53 +01:00
Simon Hauser
874139ee0b Various previewer fixes (#260)
- 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-22 10:57:31 +01:00
elianiva
5513f85b59 docs: fix builtin table formatting (#272)
@elianiva
2020-11-22 12:05:17 +03:00
Simon Hauser
d153c006e7 feat: Add highlights builtin (#267) 2020-11-21 21:33:27 -05:00
Xearty
5bf53823eb Fixed minor typos (#271)
* Fixed a minor typo

* Update README.md

Co-authored-by: TJ DeVries <devries.timothyj@gmail.com>
2020-11-21 21:30:46 -05:00
Simon Hauser
929a30378c Feat: Add filetypes builtin (#263) 2020-11-19 18:59:44 +01:00
Tami
e977c92dcd Reword customization section 2020-11-17 14:38:05 +03:00
Tami
1b12520e99 Edit introduction 2020-11-17 12:12:40 +03:00
tami5
ab30ed8ef6 Complete rewrite of README (#216)
Many thanks tami5

- New structure:
  - Getting Started
  - Customization
  - Built-in pickers
  - API
  - Media
  - Gallery
  - FAQ
  - Contributing

Co-authored-by: Patrick Lambein <patrick@lambein.name>
2020-11-17 09:56:05 +01:00