Commit Graph

1154 Commits

Author SHA1 Message Date
Jan Šipr
631167bc55 Fix error message (#198) 2020-10-27 11:52:23 -04:00
TJ DeVries
113a516c63 feat: Add ability to turn off devicon colors 2020-10-25 08:19:09 -04:00
TJ DeVries
477261e5c0 feat: Improve filtering ideas for sorters. 2020-10-25 08:09:07 -04:00
Simon Zeng
59ef37ded4 Add telescopes provider (#168)
Amendment: replace the old `builtin`
2020-10-24 23:00:22 -04:00
TJ DeVries
a8e7807086 feat: Use colors from nvim-devicons 2020-10-24 22:55:45 -04:00
swarn
7eda4e80f9 feat: Add a sorter using the fzy algorithm (#184)
* Add a sorter using the fzy algorithm

* Reformat fzy.lua

Also, update author attribution.

* Remove constansts from fzy module

Replace a few of the useful ones with getter functions that make it
clear they're not modifiable.

* Change names of fzy constant getters

* fixup: some small nit picks

Co-authored-by: TJ DeVries <devries.timothyj@gmail.com>
2020-10-20 20:14:07 -04:00
TJ DeVries
14f834b754 fix: trim spaces from prompt string 2020-10-20 19:57:59 -04:00
Bastien Rivière
b98509b4ad fix: use results_height and results_width from config (#171) 2020-10-19 22:54:35 -04:00
TJ DeVries
f95fe484f7 feat: Add ability to configure default sorters 2020-10-19 22:46:36 -04:00
Malcolm Ramsay
4cfab37541 Ensure git_files uses the git root directory as cwd (#180)
* fix: Ensure git_files uses the git root directory as cwd

This sets the cwd option of the git_files builtin to use the root of the
git directory when the cwd option doesn't already exist. When git lists
files, it is relative to the root of the git directory, rather than the
current working directory. This caused problems when using git_files in
a subdirectory of the git root (see #174).

This commit fixes the issue by always setting the cwd as the root of the
git directory.

* ref: Use neovim's system caller for command

This removes the need for an additional lua function to extract the shell
response, making use of inbuilt vim functionality.
2020-10-19 14:06:51 -04:00
Alvaro Muñoz
d493a76058 refactor: prompt->prompt_title (#169)
* refactor: prompt->prompt_title ; prompt_prefix->prompt_text

* undo prompt_prefix rename

* undo prompt_prefix rename
2020-10-17 17:26:14 -04:00
TJ DeVries
5a7a3147a4 fix: Use entry maker for marks 2020-10-15 22:30:08 -04:00
Raphael
18a91f2714 Add Colorscheme and Marks Support and Telescope Commands (#167)
* Add Telescope Commands

* Add Colorscheme support

* Add Command for coloscehme

* add marks support

* rename commad
2020-10-12 09:38:34 -04:00
Christian Clason
1e02a0a9cd fix: Clason is a miracle worker (#172)
Adds the `-R` flag to `less` for the other code path as well, which is called for `grep` and `workspace_symbols`.
2020-10-10 14:37:20 -04:00
TJ DeVries
6267ead134 fix: Use R for less so it's not bad 2020-10-09 17:34:26 -04:00
TJ DeVries
fe63e4f1de fix: Add 'use_less' config value 2020-10-09 00:00:57 -04:00
TJ DeVries
376959e7df fix: #125 2020-10-08 22:56:51 -04:00
TJ DeVries
2ce3ad61aa fix: #140 2020-10-08 22:53:44 -04:00
TJ DeVries
3cf3acc4d5 feat: Add scroll_strategy = 'cycle' 2020-10-08 22:47:22 -04:00
TJ DeVries
1222cc5b42 nit: Log when we fail with a busted bufnr 2020-10-08 22:35:17 -04:00
TJ DeVries
59497d6640 feat: Do a bit better sorting for command history
To be honest, I'm not 100% sure this is fantastic, but it's definitely a
step in the right direction for command history.

Closes: #150
2020-10-08 22:31:44 -04:00
TJ DeVries
282e328d46 fix: Allow people to still override ALL the mappings 2020-10-08 21:42:50 -04:00
TJ DeVries
c2c4626c3d feat: Add more easily customizable mappings.
Closes: #131
2020-10-08 21:39:43 -04:00
TJ DeVries
fa17b37dad fix: Do not wrap lines and allow scrolling in ranged options 2020-10-08 21:07:25 -04:00
TJ DeVries
0b35057a0c fix: Select only the desired value in resolvers 2020-10-08 20:40:28 -04:00
Dave Lage
27baff48d5 Revert "fix picking height as width (#157)" (#158)
This reverts commit c6716a5f6a.
2020-10-08 17:59:46 -04:00
Alvaro Muñoz
c6716a5f6a fix picking height as width (#157) 2020-10-08 17:45:11 -04:00
Dave Lage
04fe97d40d fix: preview_cutoff to always show on dropdown theme (#156) 2020-10-08 14:24:39 -04:00
TJ DeVries
c0f99aa09d temp: Removing redraw for now to see if it feels slower or faster for people 2020-10-08 14:22:10 -04:00
TJ DeVries
9e470537c8 fix: Remove space that I did not mean to add 2020-10-08 13:40:06 -04:00
Alvaro Muñoz
6af6b4e5fd feat: prompt_prefix option (#154)
* enable prompt_prefix option

* add hl and default value

* default hl and prefix

* fixup: move the redraw til after prompt create

* fixup: nits

Co-authored-by: TJ DeVries <devries.timothyj@gmail.com>
2020-10-08 13:34:59 -04:00
TJ DeVries
25ed3de0ff fix: Shortcircuit on nil entries and do not allow string entries 2020-10-08 13:23:12 -04:00
TJ DeVries
9d894f8229 fix: Respect cmdheight and laststatus 2020-10-08 12:53:42 -04:00
TJ DeVries
8736ea5f6a feat: ALPHA Add layout_defaults and layout_config options 2020-10-08 12:15:29 -04:00
TJ DeVries
2f03dbf265 fix: Remove useless prompt_title 2020-10-08 10:40:22 -04:00
TJ DeVries
50afbb706d fix: Scrolls past bottom line 2020-10-08 10:32:25 -04:00
TJ DeVries
01fa923f15 fix: Don't consider 1 as a percentage for resolve
Fixes: #155
2020-10-08 10:12:08 -04:00
Norlock
919b8f2a9d fix: Changed git command to show all files inside project (#129) 2020-10-07 17:03:30 -04:00
Senghan Bright
c337911b79 Fix help preview and add highlighting to search result (#124)
* fix: make sure that `$VIMRUNTIME/doc/tags` is in `tags` path

* feat: highlight matched topic in helptags preview

* fixup: Use previewer setup and teardown

Co-authored-by: TJ DeVries <devries.timothyj@gmail.com>
2020-10-07 17:00:59 -04:00
Senghan Bright
a7957b2bdc feat: Manpages finder (output of apropos) (#134)
First edition. Sometimes weird things can happen with the previewer, but I think I got it 99% working.

* feat: Manpages finder (output of apropos)

* fixup: Add previewer and fix comments

Co-authored-by: TJ DeVries <devries.timothyj@gmail.com>
2020-10-07 16:01:47 -04:00
TJ DeVries
2053a2621a feat: Use metatables to use less memory (#152)
Instead of storing everything in key / value pair hashes, we store as much as possible in an array and then reference the items in the array using metatables.

This provides us with a much lower memory footprint and just one level of table lookup indirection (so I think the speed will not be noticeably different)
2020-10-07 11:35:38 -04:00
TJ DeVries
d32d4a6e0f fix: Reduce memory leaks (#148)
It is not 100% clear that we've gotten ALL the memory leaks, but it
seems much much much better and doesn't look like it's going to die
immediately or as often anymore :)
2020-10-06 21:57:49 -04:00
Nolan Prochnau
caf370cc37 feat: Add find command support (#145) 2020-10-05 21:57:48 -04:00
Dave Lage
b4a6355f50 fix: Use width not results_width (#144) 2020-10-04 19:27:15 -04:00
rockerBOO
1821eb11f1 fix: Results height configurable. Properly collapse on border = false 2020-10-04 16:19:56 -04:00
Senghan Bright
054bd34498 feat: builtin - lua package reloader (#132) 2020-10-04 09:08:05 -04:00
Kamal Marhubi
ce66c1f78c fix: Pass --paging=always to bat (#142)
This gets rid of a slightly annoying difference between files that fit
in the preview pane and ones that don't: hitting the scroll-preview
mappings would complain about a closed stream. Always using the pager
ensures there's always a process at the other end, even if asking it
to scroll doesn't actually do anything.
2020-10-04 09:04:50 -04:00
Alvaro Muñoz
c414e5f869 feat: Add highlight for selection caret (#135)
* Add highlight for selection caret

* add default hl

* remove highlight overlap
2020-10-02 11:26:11 -04:00
Alvaro Muñoz
efffe0b533 fix: set winhl as soon as possible to avoid color glitches (#136) 2020-10-01 21:01:23 -04:00
TJ DeVries
3d0a485727 hotfix: Should stop referencing nil values
Don't know why we were getting there, but maybe this will fix the
problem?
2020-09-30 09:43:11 -04:00