Commit Graph

258 Commits

Author SHA1 Message Date
Tom
49650f5d74 feat: allow git_* to use vim pwd over git root (#563)
with opt use_git_root = false
Examples:
- Telescope git_files use_git_root=false
- Telescope git_commits use_git_root=false
- Telescope git_status use_git_root=false
2021-02-27 12:04:30 +01:00
TJ DeVries
55ab5c77a5 feat: Add vim docs & generators (#370)
* feat: Add vim docs & generators

* example of what we could start to do

* Docgen CI job

* wip

* incremental updates. soon good validation

* [Actions] Generate Documentation
skip-checks: true

* pretty cool now

* [Actions] Generate Documentation
skip-checks: true

* make sure telescope is loaded first

* Add updates. Maybe this will not delete now?

* Add defaults tags as well

* 😄

Co-authored-by: Simon Hauser <Simon-Hauser@outlook.de>
Co-authored-by: Github Actions <actions@github>
2021-02-24 21:44:51 -05: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
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
Asbjørn Håland
1c5e42a6a5 feat: add 'follow' opt to find_files (#530)
This will add possibility to follow symlinks
2021-02-12 22:31:27 +01:00
Simon Hauser
3a7fa41857 fix: all git builtin respect cwd now (#517) 2021-02-09 18:25:57 +01:00
JINNOUCHI Yasushi
c422d86eb9 feat: add sections opt for man_pages and fix for macos (#413)
:Telescope man_pages sections=3 will only show man pages from section 3
:Telescope man_pages sections=1,2,3 will show man pages from section 1, 2 and 3
2021-02-02 13:23:37 +01: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
JINNOUCHI Yasushi
5bf9e14f10 feat: support different languages for help_tags if helpfiles are available in other languages (#430)
" use helplang and show en help when it is not found.
:Telescope help_tags

" use helplang, but do not show en help when it is not found.
:Telescope help_tags fallback=false

" ignore helplang and show help from specified langs.
" when helps cannot be found, show en help.
:Telescope help_tags lang=ja,ru

" ignore helplang and show help from specified langs only.
:Telescope help_tags lang=ja,ru fallback=false
2021-01-25 19:17:40 +01:00
tami5
a81f316712 grep_string/live_grep support multiple dirs (#448)
+ overwriting vimgrep_argumnets
2021-01-20 15:50:13 +03:00
relnod
36783845e4 feat: add ignore_current_buffer opt to builtin buffers (#444) 2021-01-19 18:33:18 +01:00
Massimo Redaelli
9f58834d04 feat: allow to list files in git submodules (#329)
Co-authored-by: Simon Hauser <Simon-Hauser@outlook.de>
2021-01-16 12:07:21 +01:00
Simon Hauser
e08a5b1331 feat: show git log for remote branches (#428) 2021-01-15 09:27:46 +01:00
Simon Hauser
5701255097 fix #426 (#427) 2021-01-12 22:26:12 +01:00
Simon Hauser
6461b07454 fix #385 (#422) 2021-01-12 17:20:02 +01:00
JINNOUCHI Yasushi
95264ada79 fix: git_branch only remove remotes/origin part (#423) 2021-01-12 09:06:16 +01:00
Senghan Bright
1d6195ff64 fix: remove quotes from spell suggestions (#400) 2021-01-06 15:16: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
JINNOUCHI Yasushi
402c2ea5fa add devicons to oldfiles picker (#397) 2021-01-06 06:20:59 +03:00
Cedric M'Passi
9503603f88 feat: Add highlight to builtin.git_status (#388) 2021-01-04 23:04:58 +01:00
Simon Hauser
313ce9d0b6 fix: live_grep will now accept cwd (#390) 2021-01-04 22:01:03 +01:00
elianiva
88ebcaab10 fix: escape chars instead of resetting the prompt (#379) 2021-01-03 15:07:37 +01:00
elianiva
c3806f46b9 fix: live_grep throws an error if you insert \ (#378) 2021-01-03 11:59:16 +01:00
Simon Hauser
a0b37473a9 fix: tags now work with hasktags (#375) 2020-12-31 16:17:09 +01:00
tamago324
e555cd375f feat: all entry_makers are now overridable and icons for builtin.buffers (#364) 2020-12-27 17:15:52 +01:00
Julian Berman
20fffc7c25 Feat: Add hidden to find_files (#340) 2020-12-26 18:48:49 +01:00
tami5
4850c6df6d feat: include buf local maps, execute item on enter (#360)
keymaps should now include local buffer mappings and execute the mappings one enter
2020-12-23 20:36:20 +03:00
Senghan Bright
76f94588d3 LSP check capabilities (#356)
* check server capabilities before using LSP finders

* client indices do not always start at [1]

* succeed on first supported client

* use apply_checks method

* removed debug comment

* rename mappings table
2020-12-20 10:46:58 +01:00
Simon Hauser
2488e31df8 Feat: displayer hl_chars and TelescopeResults hlgroups (#349) 2020-12-19 21:13:05 +01:00
Senghan Bright
084a30b8fa More colours (#351)
* add vim hl_groups for autocmds finder

* spacing

* add displayer/colouring for git_commits

* LSP colouring and restore filename for workspace symbols

* resolve review issues.

* fix: handle 'show_line', 'ignore_filename', 'hide_filename'

* fix lsp workspace defaults

* allow for setting show_line when ignore filename is true

* move lsp_doc_symbol lineinfo to 2nd column

* reformat treesitter display to match LSP

* use utility functions for setting opts defaults

* add fix-me note for unlikely configuration permutation

* use hl_chars format for inline lineinfo
2020-12-19 20:25:08 +01:00
Senghan Bright
68c5870345 Add more colour (#346)
* add colour to buffers finder

* new display function for LSP workspace/doc symbols

* add more hl_groups and opts paramter

* use make_display() for man_pages finder.

* use make_display for registers finder and add color

* don't use quickfix make_entry() for builtin finder

* make_entry() for builtin finder

* remove debug output

* revert change to internal.builtin finder

* fix_spacing
2020-12-18 15:41:55 +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
Anirudh Haritas Murali
b5ff9de13d feat: add search_dirs opt to builtin.find_files to search from multiple dirs (#237) 2020-12-17 00:01:49 +03:00
Senghan Bright
205790285b fix: don't error when no hidden buffers are available (#341) 2020-12-16 21:36:50 +01:00
TJ DeVries
dfeebffd93 fix: Checks for next server on buffer 2020-12-14 11:41:16 -05:00
Simon Hauser
df6b762b31 Feat: symbols json picker (#303) 2020-12-10 09:22:46 +01:00
Simon Hauser
141dc6d55e ci: Add luacheck ci job (#317)
* Add luacheck ci job

* Fix most of the linting issues

* fixup: lint

Co-authored-by: TJ DeVries <devries.timothyj@gmail.com>
2020-12-09 15:46:41 -05: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
Julian Berman
863a0d42c9 fix: Set and unset report to what's needed when deleting buffers. (#282)
Fixes #105.
2020-12-03 14:23:19 -05:00
tamago324
f2b483edc5 Fix to pass opts to pickers (#301)
builtins were not passing `opts` correctly, but now do.
2020-12-02 23:54:09 -05:00
Senghan Bright
8546fdf610 new builtin - autocommands (#302)
* feat: new builtin - Autocommands finder

* fix: remove decorators to avoid confusion.

* make preview split same hl-group as border

* use highlight instead of marker character for preview selection hl
2020-12-02 00:27:54 +01:00
Simon Hauser
7dd79bf2ef Fix builtin.builtin for lsp and git modules (#300) 2020-11-28 22:11:46 +01: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
Cedric M'Passi
6edbd1db5f feat: Make tab toggle between git add and git restore in builtin.git_status() (#289)
Very useful functionality to use git_status for. Now users can add a file or restore it by <tab>

authored by: @cempassi
2020-11-27 14:15:02 +03:00
Simon Hauser
4a8ea7763e Refactor builtin (#287) 2020-11-26 08:16:58 +01: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