Commit Graph

71 Commits

Author SHA1 Message Date
Alex Mastro
d2b3b08077 fix: attempt to concatenate when entry.kind == nil or or symbol_type == nil (#853) 2021-05-30 10:54:17 +02:00
Amirreza Askarpour
9fd242db26 feat: add git_stash picker (#800) 2021-05-11 10:20:57 +02:00
caojoshua
e2907fc0f2 feat: jumplist picker and jump to row/col on existing buffers. (#813) 2021-05-09 11:05:12 +02:00
Tom Praschan
1408e3bbb7 feat: add option to configure width of items in gen_from_lsp_symbols() (#812) 2021-05-08 13:43:38 +02:00
Eugene Oliveros
bc6385be31 feat: Add only_sort_tags option for builtin.tags (#825) 2021-05-08 13:38:18 +02:00
August Masquelier
f92b9b1fae fix: live_grep path appending with cwd when already absolute (#768) 2021-04-17 22:50:07 +03:00
Weihang Lo
9e603d3c1b feat: table layout for builtin commands (#754) 2021-04-15 09:26:38 -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
TJ DeVries
ba1e674e68 fix: update to newer code (#744) 2021-04-09 13:04:01 -04:00
TJ DeVries
e5fbe6fe60 fix: Use standardized names for current buffer fuzzy find (#737) 2021-04-07 17:12:47 -04:00
TJ DeVries
0b2c801978 feat: buf highlights for current buffer fuzzy find (#732)
* feat: Add buffer highlights from treesitter

* fix: Handle not having tree sitter in some buffers

* fixup

* fixup

* fixup: move back to old node
2021-04-06 19:59:42 -04:00
August Masquelier
d0cf646f65 feat: current buffer fuzzy find improvements (#694)
If you don't want to have a previewer disable it with `:Telescope current_buffer_fuzzy_find previewer=false`
To ignore empty lines do: `:Telescope current_buffer_fuzzy_find skip_empty_lines=true`
2021-04-04 13:04:06 +02:00
fdschmidt93
8369acea3e fix: error from unset LspDiagnosticSign & introduce opts.no_sign to lsp_*_diagnostics (#607) 2021-03-04 21:53:41 +01: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
ndavid
678494e503 refactor: move transform_devicons and get_devicons to utils (#580)
So extension developers can access them
2021-03-01 23:59:17 +01:00
Danilo Luvizotto
b075d0d2b6 fix: git_commits when a commit has no message (#529) 2021-02-12 19:23:13 +01:00
Simon Hauser
3a7fa41857 fix: all git builtin respect cwd now (#517) 2021-02-09 18:25:57 +01:00
JINNOUCHI Yasushi
b3d3d93869 feat: show all sections in man_pages (#512)
:Telescope sections=ALL
2021-02-08 09:52:33 +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
JINNOUCHI Yasushi
1ca1e7ccba fix: Multi byte truncate for displayer (#464)
This is needed for calling strdisplaywidth() from Lua loop.

See https://github.com/nvim-telescope/telescope.nvim/issues/414
See a1ed941a78/src/nvim/eval/funcs.c (L9845-L9858)

Co-authored-by: Simon Hauser <Simon-Hauser@outlook.de>
2021-01-31 10:55:17 +01:00
TJ DeVries
4ca523232e feat: only_search_text (#419) 2021-01-11 16:32:53 -05:00
Cedric M'Passi
9503603f88 feat: Add highlight to builtin.git_status (#388) 2021-01-04 23:04:58 +01:00
Senghan Bright
71ea4130a2 Fix missing global (#384)
* add selected command to cmd-history

* make N_ function global

* fix vimoptions description resolution and add color
2021-01-04 08:02:11 +01:00
Simon Hauser
4691863f43 fix: termopen previewer for powershell (#382) 2021-01-03 20:27:23 +01:00
Simon Hauser
a0b37473a9 fix: tags now work with hasktags (#375) 2020-12-31 16:17:09 +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
tamago324
e555cd375f feat: all entry_makers are now overridable and icons for builtin.buffers (#364) 2020-12-27 17:15:52 +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
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
9a97982fc7 change quickfix make_entry to use column displayer (#331)
* change quickfix make_entry to use column displayer

* fix: don't convert filename to empty string
2020-12-13 17:25:25 +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
486ab56776 Feat: Displayer now supports highlights for separator and elements (#304)
Separator Example: When creating the displayer
```lua
local displayer = entry_display.create {
  separator = " ",
  separator_hl = 'Visual', -- New
  items = {
    { width = opts.bufnr_width },
    { width = 4 },
    { remaining = true },
  },
}
```

Elements Example: When submitting data
```lua
local hl_group = x == y then 'Normal' or 'Visual'

return displayer {
  entry.bufnr,
  { entry.indicator, hl_group },
  display_bufname .. ":" .. entry.lnum,
}
```
2020-12-03 08:41:10 +01: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
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
Senghan Bright
124655608f Register finder (#275)
builtin: Registers finder. view and edit vim registers.
2020-11-23 11:07:53 +01:00
Simon Hauser
d153c006e7 feat: Add highlights builtin (#267) 2020-11-21 21:33:27 -05:00
Simon Hauser
eaa7011f84 feat: Add tags (#219) 2020-11-16 15:17:13 -05:00
Simon Hauser
8117263027 feat: Add git builtins (#240)
Conni2461 is a great coder and contributor :)
2020-11-16 15:10:26 -05:00
Nolan Prochnau
1678d7cb13 Rename and simplify make_entry function 2020-11-09 22:18:36 -05:00
Nolan Prochnau
48820cb1a0 Grab helptags from all paths defined in rtp 2020-11-09 22:05:02 -05:00
Senghan Bright
051aefdb8c feat: v1 options menu (#133)
Still has a bunch of improvements that can be done, but wanted to merge in some of the related changes.

* options parser

* wip: vimoptions finder

* feat: pre-populate ex-command line with `:set foo=`

* use options current value when populating command line

* fix: use result.raw_value to store original option value

* .

* options: Continue work on option finder

* [WIP]: Tue 27 Oct 2020 10:34:09 PM EDT

* [WIP]: Mon 02 Nov 2020 08:20:13 PM EST

* [WIP]: Mon 02 Nov 2020 09:04:23 PM EST

Co-authored-by: TJ DeVries <devries.timothyj@gmail.com>
2020-11-02 21:05:10 -05:00
TJ DeVries
855d818a5d fix: #211 2020-11-02 17:07:32 -05:00
TJ DeVries
113a516c63 feat: Add ability to turn off devicon colors 2020-10-25 08:19:09 -04:00
TJ DeVries
a8e7807086 feat: Use colors from nvim-devicons 2020-10-24 22:55:45 -04:00
TJ DeVries
5a7a3147a4 fix: Use entry maker for marks 2020-10-15 22:30:08 -04:00