Commit Graph

1166 Commits

Author SHA1 Message Date
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
Dave Lage
90f6fee17d Merge pull request #143 from nvim-lua/dropdown-fixes
fix: Results height configurable. Properly collapse on border = false
2020-10-04 16:22:45 -04:00
rockerBOO
1821eb11f1 fix: Results height configurable. Properly collapse on border = false 2020-10-04 16:19:56 -04:00
rockerBOO
a1cab377db docs: Themes should work with every builtin 2020-10-04 12:37:33 -04:00
rockerBOO
634703c297 Update Dropdown Theme Screenshot 2020-10-04 12:34:19 -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
TJ DeVries
ccb079e08e Update README.md 2020-09-30 00:09:52 -04:00
TJ DeVries
ae7fd0d27a feat: Add status, better debug, and some associated refactors
* [WIP]: Mon 28 Sep 2020 01:08:24 PM EDT

* add much much better tracking. so much less hax

* status updates, oneshot job updates, etc.

* remove temp function

* add status function

* asdfasdfasdf
2020-09-29 22:52:38 -04:00
Simon Hauser
2ce23696de Fix if-clause after latest changes 2020-09-29 22:41:11 -04:00
TJ DeVries
3592b1f8b0 fix: 126 2020-09-28 17:03:59 -04:00
TJ DeVries
079773ebee fix: No longer lose highlights when moving through results 2020-09-26 12:36:58 -04:00
TJ DeVries
33b6db19ab fix: Fixed some off by one errors for ascending strategy 2020-09-26 12:21:10 -04:00
TJ DeVries
64207a21c2 feat: Add TelescopeMatching a new highlight for matches from sorters 2020-09-26 12:05:32 -04:00
TJ DeVries
487ed97acb data: add options.lua 2020-09-26 10:42:57 -04:00
TJ DeVries
059ccd33af fix: use os sep 2020-09-26 10:42:19 -04:00
Rui Marques
6b23ef988b Fix issue with trimming path separator '/' 2020-09-26 10:42:19 -04:00
TJ DeVries
541c4c33e6 fix: Rockerboo document lies 2020-09-25 16:07:03 -04:00
TJ DeVries
c58779144f fix: #105
Warn users if they have `report` set to a bad value

In the future, we could try and change it and put it back, but that
feels a bit bad. If anyone can tell me WHY you would want this, then we
can do it.
2020-09-25 10:29:17 -04:00
Senghan Bright
c3f9b25606 feature: Vim help-tags picker (#117)
* feature: Vim help-tags picker

* fix: filtered results were wrong because of missing `entry.value`

* fix: filtered (Vim only help) items are listed in results as empty
entries.

* fix: avoid search history pollution by replacing / in cmd returned by taglist() with search()

* fix: improve search() formatting

* fix: escape tilde in search() command

* fix: improve help-preview

* fix: improve search()

* fix: search() string fixes.

* fix: use no magic to do magic

Co-authored-by: TJ DeVries <devries.timothyj@gmail.com>
2020-09-25 00:16:48 -04:00
TJ DeVries
a38bb06e7d wip: Add some stuff for nvim_file 2020-09-24 23:23:03 -04:00
TJ DeVries
145777396b scratch: add completion init for testing 2020-09-24 22:30:20 -04:00
TJ DeVries
46f1b47c0b fix: more silenter 2020-09-24 21:04:21 -04:00
Mike Hartington
b0f6895c31 fix: run filetypedetect on edit (#116) 2020-09-23 16:35:57 -04:00
Senghan Bright
6e59074a50 fix: refresh bufnr after executing edit command (#119) 2020-09-23 16:31:50 -04:00
TJ DeVries
7871d392ad wip: Add some WIP ideas for reloader 2020-09-23 12:12:37 -04:00
Senghan Bright
203c696230 fix: small fixes from sunjon (#107)
* Don't execute `command` if target buffer is already loaded in window.

* Print node_text before entry.kind in ordinal string.

* Add new builtin for listing and reloading Lua modules.

* Revert "Add new builtin for listing and reloading Lua modules."

This reverts commit 65d9d0294eae92b347b38b8dcf807fbcdd5783fe.
2020-09-23 00:20:38 -04:00
Fahad RIaz
7015596711 fix: adding a nil check to self.state when the window is too narrow for a preview (#110) 2020-09-23 00:19:14 -04:00
Dave Lage
8f8d6563c0 fix: Tighten up prompt on dropdown theme (#113) 2020-09-23 00:13:58 -04:00
rockerBOO
acd79d3d4c fix: Tighten up prompt on dropdown theme 2020-09-23 00:13:07 -04:00
Dave Lage
b31bc361d5 fix: Use specific highlight types (#112) 2020-09-22 23:37:38 -04:00
rockerBOO
d68108e098 fix: Use specific highlight types 2020-09-22 23:36:40 -04:00
Dave Lage
84cfdd1bd8 feat: Add TelescopeBorder Highlight (#111) 2020-09-22 23:31:40 -04:00
rockerBOO
e4a5bd5824 feat: Add TelescopeBorder Highlight 2020-09-22 23:29:48 -04:00
TJ DeVries
e43efc389e fix: Don't pass anything if word match is empty 2020-09-22 12:50:03 -04:00
TJ DeVries
941fb160c5 fix: Don't log so much for users. Fix #91 2020-09-22 10:04:02 -04:00
TJ DeVries
be9a0e5236 fix: Close existing pickers when starting new one. Fix #102 2020-09-22 09:59:06 -04:00
TJ DeVries
d7ee7266ab test: Working on more memory leak tracking 2020-09-22 09:58:49 -04:00
TJ DeVries
fa16efaeb6 scratch: minimal init vim 2020-09-22 09:58:20 -04:00
TJ DeVries
025485fa1f wip: Add ability to search for word match w/ rg 2020-09-22 09:58:08 -04:00
TJ DeVries
5c7b12cc01 fix: Perhaps fix #105 2020-09-22 09:44:34 -04:00
TJ DeVries
25b7895097 feat: Disable job recording from plenary.
This should reduce memory usage at least for large jobs. We won't save
all the results into the job. I _think_ this will be half memory usage
for many situations.
2020-09-21 15:41:38 -04:00
Rui Marques
2ca006fc97 feat: Trim cwd from bufname if possible (#104) 2020-09-21 15:31:28 -04:00
TJ DeVries
9f863d40bd fix: Add timeout param to all buf_requests and move to 10 seconds 2020-09-18 10:02:15 -04:00