Steven Arcangeli
6741f1062d
cleanup: remove warnings for using deprecated highlight groups
2024-06-18 21:26:01 -04:00
Steven Arcangeli
8b7b3dce9e
ci: run tests against Neovim v0.10.0
2024-05-16 12:26:10 -07:00
Steven Arcangeli
3858609d68
fix: refactor deprecated methods in neovim 0.10
2024-04-23 07:21:29 -07:00
Yi Ming
18e5beb384
fix(fzf-lua): add separator after prompt ( #145 )
...
* feat(fzf-lua): add an input indicator after prompt
* refactor: only use '>' as separator if ':' is not being used
---------
Co-authored-by: Steven Arcangeli <stevearc@stevearc.com>
2024-03-12 20:16:43 -07:00
Steven Arcangeli
6f21226206
fix: undo fzf-lua cancel hack, was fixed upstream ( #142 )
2024-01-28 18:00:51 -08:00
Steven Arcangeli
0e88293ce3
fix(fzf-lua): not returning selected result
2024-01-25 11:09:18 -08:00
Steven Arcangeli
9f9b77315d
fix(fzf-lua): canceling selection breaks future invocations of vim.ui.select
2024-01-25 11:07:13 -08:00
Steven Arcangeli
9de702fa7d
fix: queue successive calls to input and select ( #139 )
2024-01-21 14:24:20 -08:00
231tr0n
7237cdf25e
fix: handle extra scenario where the prompt is sent with trailing spaces ( #138 )
...
* fix: handle extra scenario where the prompt is sent with trailing spaces
* changed selection for gsub
* trimmed correctly using vim.trim method
2024-01-21 08:16:20 -08:00
Steven Arcangeli
c1179336aa
feat: add checkhealth messages
2024-01-15 19:24:30 -08:00
231tr0n
44a3638721
fix: add space after prompt to look nicer ( #136 )
2024-01-14 09:33:08 -08:00
Alexandre Fonseca
d7dde6afff
fix: take into account prompt size in nui and builtin selects ( #135 )
2024-01-14 09:30:26 -08:00
Steven Arcangeli
94b0d24483
fix(nui): prevent double-callback in ui.select ( #131 )
2023-12-26 17:39:23 +00:00
Steven Arcangeli
fe3071330a
fix(telescope): codeactions error in Neovim nightly ( #126 )
2023-11-07 05:38:05 +00:00
Steven Arcangeli
15ef9a398c
feat: config option to disable numbers for builtin select implementation ( #117 )
2023-09-04 21:11:57 -07:00
Steven Arcangeli
ee571505f3
feat: add highlight group for builtin select index ( #113 )
2023-08-19 22:05:35 +00:00
Steven Arcangeli
169877dbca
fix: restore float title padding for nvim 0.9 ( #109 )
2023-08-09 16:27:23 -07:00
Steven Arcangeli
713b56e13c
fix: increase buffer time for fzf-lua mode switching
2023-08-06 19:50:17 -07:00
Steven Arcangeli
bcaf0d3d6e
refactor!: deprecate the "anchor" config option ( #106 )
...
This was left over from before we had the "override" function. Now, it
doesn't make much sense to set the anchor as an option because so much
of the rest of the layout logic depends on the anchor being the default.
If a user wants to customize the layout, the override function is the
way to do it.
2023-07-29 09:35:02 -07:00
Steven Arcangeli
39611852fd
fix: inconsistent mode after selecting with fzf-lua
2023-07-17 16:24:04 -07:00
DragonBillow
cc69bfed36
feat: built-in select implementation binds number keymaps ( #104 )
...
* feat(select/builtin): binding keymap for select
Signed-off-by: Longtao Zhang <DragonBillow@outlook.com>
* feat(select/builtin): add number prefix
Signed-off-by: Longtao Zhang <DragonBillow@outlook.com>
* style(builtin): remove debug statement
Signed-off-by: Longtao Zhang <DragonBillow@outlook.com>
* style(builtin): rename variable, solve luacheck problem
Signed-off-by: Longtao Zhang <DragonBillow@outlook.com>
---------
Signed-off-by: Longtao Zhang <DragonBillow@outlook.com>
2023-07-17 08:54:38 -07:00
Steven Arcangeli
154f22393b
fix: stop using vim.wo to set window options
...
vim.wo also affects the global status of the option. We only want to set
the window-local option.
2023-06-15 21:52:50 -07:00
Steven Arcangeli
f19cbd56f7
fix: ensure telescope win is closed before calling callback
2023-05-24 22:59:28 -07:00
Steven Arcangeli
80dadc9c46
refactor: use modern option setter/getter methods
2023-05-21 20:29:43 -07:00
Steven Arcangeli
bf1a554644
refactor: undeprecate fzf-lua config ( #97 )
...
Instead of encouraging people to register fzf-lua ui_select manually, we
can just call into it. I found a way to pass in config options (which
was the sticking point previously). Doing it this way preserves the rest
of the dressing functionality (e.g. get_config)
2023-05-12 05:41:45 -07:00
Steven Arcangeli
a89327e245
refactor: remove fzf_lua implementation; defer directly to fzf_lua
...
Since fzf-lua ships with an implementation for vim.ui.select, we should
use that directly instead of creating our own wrapper. It reduces
overall code duplication and reduces the surface area for bugs to creep
in.
2023-04-12 05:43:58 -07:00
Steven Arcangeli
91b9ba8a94
refactor: use nvim 0.9 window title when available
2023-04-07 12:21:57 -07:00
Steven Arcangeli
55fd604006
fix: sanitize newlines in entries and prompts ( #88 )
2023-02-23 22:03:55 -08:00
Steven Arcangeli
c7eda5a68e
refactor!: expose generic way to set window/buffer options in config ( #75 )
2022-12-04 23:45:04 -08:00
tobias.voelzel
fa732334c5
fix(fzf-lua): pass prompt option to fzf
...
blub
2022-11-18 21:06:47 +01:00
Emmanuel Touzery
6c13c0dbc6
fix issue when operating from a floating window
...
the floating window would get closed when we open and returning to the
original window would crash.
2022-10-03 08:48:19 +02:00
Steven Arcangeli
76477792b3
format: stylua
2022-09-20 11:28:42 -07:00
bhagwan
7b9d6d1fd2
chore(fzf-lua): use newer 'fzf_exec' API ( #64 )
2022-09-20 09:46:28 -07:00
Steven Arcangeli
ee5fb7b42b
format: stylua
2022-09-15 07:41:02 -07:00
Andrii Savytskyi
175d86172b
Add space between idx and text in ordinal
2022-09-15 16:14:33 +03:00
Andrii Savytskyi
ce8fdc8907
remove plenary.nvim dependency
2022-09-15 15:23:31 +03:00
Andrii Savytskyi
971c9c9712
Update telescope.lua
2022-09-15 12:50:30 +03:00
Steven Arcangeli
b188b7750c
fix: restore cursor position after select
...
Some of the select implementations, due to the fact that they switch
from normal mode to insert mode and back, cause the cursor to move
backwards by one column. This can have unfortunate effects if you are
relying on the cursor position to perform some operation.
2022-09-07 07:42:19 -07:00
Steven Arcangeli
9cdb3e0f09
fix: use schedule_wrap for select again ( #59 ) ( #58 )
2022-08-31 08:37:33 -07:00
Steven Arcangeli
232b6b3021
fix: only schedule_wrap when necessary ( #58 )
2022-08-28 10:18:01 -07:00
Steven Arcangeli
d886a1bb0b
feat: pass items to get_config for vim.ui.select
2022-07-31 08:12:18 -07:00
Steven Arcangeli
b1c08146ee
feat: expose mappings to user via config
2022-07-28 21:27:06 -07:00
Steven Arcangeli
47b95c1eab
refactor!: use newer APIs for setting keymaps and autocmds
...
BREAKING CHANGE: This drops support for Neovim versions earlier than
0.7. For earlier versions of Neovim, use the nvim-0.5 branch.
2022-07-28 07:54:40 -07:00
Steven Arcangeli
d394a2591c
fix: bad nui parameter in last commit ( #45 )
2022-06-07 08:04:09 -07:00
Steven Arcangeli
a59218e110
feat(select)(nui): add more configuration options
2022-06-04 19:10:47 -07:00
Andrey Avramenko
4bd4167a77
fix(select): use original vim.ui.select if enabled is false
2022-06-01 17:59:28 +03:00
Andrew
59cd93b994
feat: trim trailing colon from prompt
2022-05-30 12:24:52 +10:00
Steven Arcangeli
b2406a0ea7
fix: telescope codeaction properly columnates and indexes client name ( #6 )
2022-05-29 18:48:25 -07:00
Steven Arcangeli
e3b31d45bc
feat: customize the code action UI for telescope ( #6 )
2022-05-26 22:09:34 -07:00
Steven Arcangeli
e607dd99ae
feat: enable telescope customization for vim.ui.select caller
2022-05-26 19:45:28 -07:00