Commit Graph

134 Commits

Author SHA1 Message Date
Khue Nguyen
a7d359948b docs: correct link to CONTRIBUTING.md (#632) 2021-03-10 05:39:50 +03:00
oberblastmeister
ff428c9187 feat: lsp definitions (#631)
* added lsp definitoins

* don't call locations_to_items when there is one

Co-authored-by: Jae-Won Chung <jaywonchung@snu.ac.kr>

* added missing end

* added description

* added to feature map

* Update lua/telescope/builtin/lsp.lua

Co-authored-by: fdschmidt93 <39233597+fdschmidt93@users.noreply.github.com>

* Update lua/telescope/builtin/lsp.lua

Co-authored-by: Jae-Won Chung <jaywonchung@snu.ac.kr>

Co-authored-by: Jae-Won Chung <jaywonchung@snu.ac.kr>
Co-authored-by: fdschmidt93 <39233597+fdschmidt93@users.noreply.github.com>
2021-03-09 14:17:56 -05:00
elianiva
6e941e0ece feat: define scroll speed + smart_send to qflist (#610)
* smart send to qflist

* Previewer scrolling for half window height

* Start doing cleanup in readme

* feat: add ability to define the scrolling speed

* move scrolling action to action.set

* docs: added more docs for actions

* [docgen] Update doc/telescope.txt
skip-checks: true

Co-authored-by: Simon Hauser <Simon-Hauser@outlook.de>
Co-authored-by: Github Actions <actions@github>
2021-03-05 20:13:48 +07:00
fdschmidt93
908752fc67 feat: workspace diagnostics, jump to and improved styling (#599)
Changes: `Telescope lsp_diagnostics` is now `Telescope lsp_document_diagnostics`
New: `Telescope lsp_workspace_diagnostics`

Co-authored-by: Fabian David Schmidt <fabian.david.schmidt@hotmail.com>
Co-authored-by: elianiva <dicha.arkana03@gmail.com>
2021-03-04 15:01:17 +01:00
fdschmidt93
db7615578b feat: lsp diagnostics and prefiltering by entry attribute (#543)
prefiltering for lsp_document_symbols and lsp_workspace_symbols.
example: type `:var:` to show all vars
2021-03-03 22:33:03 +01:00
elianiva
b67c6fdfee docs: show a short way to list all builtin pickers
ref: #588
2021-03-03 13:52:41 +07:00
Thorsten Ball
a14b95962f Fix formatting in README to show keybinding (#577) 2021-03-01 17:38:18 +07:00
elianiva
b1711389b6 docs: add space before + and }
I am sorry, my OCD can't stand this :DDD
2021-02-28 22:27:41 +07:00
Ben Smith
ed2764a1bd feat: layout horizontal and vertical can now be mirrored (#548)
See documentation for more info
2021-02-28 11:16:47 +01:00
Simon Hauser
ca92ec1a83 fix: a lot of small things and adds more customization for caret (#554)
Attention:
prompt_prefix will no longer add a space at the end. So if you still want a space at the end make sure your configuration has one.
The default should not be changed. So if you haven't copied prompt_prefix in your config this doesn't affect you.

Feat:
- prompt prefix does no longer always end with space
- selection_caret configurable. Default: `> `
- result_prefix configurable. Default: `  `
- more actions for git_branches
  - <c-t> does track the branch
  - <c-r> does rebase branch
  - also added delete branch action but not configured. See readme on how to do that

Fixes:
- fix docgen ci
- Better error for lsp_workspace_symbols
- better formatting for CONTRIBUTING.md
- move from systemlist to plenary.job
- git branch now supports checkout on remote branches
2021-02-27 16:26:25 +01:00
elianiva
d3a9c786ba docs: update outdated gif + more demo (#546)
* docs: update outdated gif

* add link that points to telescope wiki
2021-02-25 00:23:41 -05:00
Simon Hauser
b5051eeb01 feat: make buffer previewer default and deprecate bat previewer (#420)
To revert back to bat previewers put this into your config:

file_previewer = require'telescope.previewers'.cat.new,
grep_previewer = require'telescope.previewers'.vimgrep.new,
qflist_previewer = require'telescope.previewers'.qflist.new,
2021-02-24 03:47:22 +01:00
Simon Hauser
4dd35ef0e1 feat: file browser & refresh interface (#290)
and more picker api stuff for sunjon. refresh is implemented for file_browser and git_status
2021-02-23 22:10:19 +01:00
bi0ha2ard
0a32b47f20 fix: typo from last commit (#542)
Please blame conni for that one
2021-02-23 21:01:08 +01:00
bi0ha2ard
da7bdd9ee7 readme: update extensions section. Link to wiki for community extensions (#539) 2021-02-23 20:48:42 +01:00
TJ DeVries
d7c02e3b52 feat: Action improvements (#472)
* feat: replace_map

* feat: Add action_set and action_state

* fix: Move all actions.get_ to action_state.get_

* fix: replace all internal references of _goto_file_selection_edit

* feat: add some docs

* fix: lint

* feat: actions.select

* remove mentions and usage of goto_file_selection APIs

* feat: special case attach_mappings to be overridable and defaultable

* Having goto_file_selection mappings will cause a error

as well as replacing deprecated goto_file_selection methodes

For config and replacing use this instead:
- actions.select_default
- actions.select_horizonal
- actions.select_vertical
- actions.select_tab

Only replacing:
- actions.set.edit -- for replacing all select functions

* adds actions.state.select_key_to_edit_key

Co-authored-by: Simon Hauser <Simon-Hauser@outlook.de>
2021-02-22 11:30:57 -05:00
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