Commit Graph

1128 Commits

Author SHA1 Message Date
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
TJ DeVries
4ca523232e feat: only_search_text (#419) 2021-01-11 16:32:53 -05:00
Simon Hauser
5592d709c6 refactor file_maker signature and fix scrolling (#412) 2021-01-11 21:10:42 +01:00
Simon Hauser
07f8f3d340 fix: previewer windows fix (#371) 2021-01-11 21:02:24 +01:00
TJ DeVries
8783bea06e feat: quickfix (#293)
* feat: quickfix (not implemented)

* [WIP]: Wed 09 Dec 2020 11:11:30 PM EST

* somewhat working linked list impl

* getting closer

* might be working

* might be working for real

* works and implemented basic example

* dont forget to close prompt

* fix descending and add more tests

* test fixes

* fix test

* more logging

* Fix some more tests

* Fix logging messing up tests

* fix: lint

* fix: multi select stuffs
2021-01-11 13:29:37 -05:00
JINNOUCHI Yasushi
cc6749a5aa fix: use valid paths for term_previewer vimgrep and qflist (#402) 2021-01-09 12:06:11 +01:00
Raphael
77d6a74d1e fix: custom extensions opts for commands (#404) 2021-01-08 06:00:45 +03: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
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
Mike
d2ba51c6ca fix: handle directories in windows with dir (term_previewer) (#395) 2021-01-05 20:11:36 +01:00
oberblastmeister
f750159203 feat: add actions.get_current_line (#391) 2021-01-05 08:50:44 +01: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
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
Senghan Bright
6a403ddf98 add selected command to cmd-history (#383) 2021-01-04 07:09:55 +01:00
Simon Hauser
4691863f43 fix: termopen previewer for powershell (#382) 2021-01-03 20:27:23 +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
Alvaro Muñoz
f15af583eb fix: make sure preview buffer is valid before writing to it (#376) 2021-01-01 20:42:36 +01:00
Simon Hauser
a0b37473a9 fix: tags now work with hasktags (#375) 2020-12-31 16:17:09 +01:00
Simon Hauser
686d560fa5 fix: has ts (#374) 2020-12-31 11:50:39 +01:00
fffed
d72f73feeb fix: add ts_parsers.ft_to_lang to detect lang (#373)
Add detection of a proper buffer language by `ts_parsers.ft_to_lang` as `ts_parsers.has_parser` works with `language` but not with `filetype`
https://github.com/nvim-treesitter/nvim-treesitter/issues/796
2020-12-30 22:24:45 +01:00
Alvaro Muñoz
e0705b5d4a feat: append mode for previewers.utils.job_maker (#372) 2020-12-30 00:56:12 +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
MenBrial
3e884e863a fix: bug scroller.create (#366)
Corrects error creation
2020-12-26 18:51:08 +01:00
Julian Berman
20fffc7c25 Feat: Add hidden to find_files (#340) 2020-12-26 18:48:49 +01:00
TJ DeVries
049602a2c5 ci: more tests (#359)
* more tests

* lint
2020-12-23 13:31:05 -05: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
Cedric M'Passi
5a65c676af fix: normal mode toggle issue 2020-12-21 22:23:34 +01:00
TJ DeVries
2aa8bcb878 feat: Add better highlighting and new CI abilities (#355)
* Revert "Revert "fix: Better highlights (#344)" (#350)"

This reverts commit 7950fc8ba0.

* better highlights take 2

* fixup

* install fd find for sameness

* add some debug output

* more deterministic

* better ci
2020-12-21 16:03:48 -05: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
Simon Hauser
8c90d4855c Refactor previewers (#345) 2020-12-19 16:45:02 +01:00
Senghan Bright
7950fc8ba0 Revert "fix: Better highlights (#344)" (#350)
This reverts commit eca83f214a.
2020-12-18 23:44:58 +01:00
TJ DeVries
eca83f214a fix: Better highlights (#344)
* scratch: easy reproduce for buffers

* fix: Many highlight fixes
2020-12-18 23:42:51 +01:00
Senghan Bright
28abd7fb53 fix results count padding (#348) 2020-12-18 20:43:59 +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
Simon Hauser
e5233f39c5 Fix: Use plenary.filetype.detect and remove own filetype detect (#326)
requires newest plenary.nvim version or you will have a bad day
2020-12-17 09:27:11 +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
eth3lbert
af8d990c2c fix: typo (#339) 2020-12-15 09:26:05 +01:00