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
5131545f0a
cleanup: remove old deprecation messages
2023-07-29 09:28:27 -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
63cfd55eb2
refactor!: drop support for Neovim 0.7
2023-06-15 21:52:50 -07:00
Steven Arcangeli
f16d7586fc
fix: close input window when entering cmdline window ( #99 )
2023-06-02 12:09:51 -07:00
Steven Arcangeli
f19cbd56f7
fix: ensure telescope win is closed before calling callback
2023-05-24 22:59:28 -07:00
Steven Arcangeli
2f17eee4d7
fix: minor tweaks to fix LSP type errors
2023-05-21 20:35:45 -07:00
Steven Arcangeli
9b0a311192
refactor: don't need to use global functions for completion
2023-05-21 20:31:58 -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
540d6e7115
cleanup: remove shim for deprecated config options
2023-05-03 09:49:55 -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
324f8f16e0
feat: provide better default window options for vim.ui.input ( #94 )
2023-04-04 10:54:52 -07:00
Steven Arcangeli
5f44f82948
fix: bad default value handling in vim.ui.input
2023-02-23 22:06:34 -08:00
Steven Arcangeli
55fd604006
fix: sanitize newlines in entries and prompts ( #88 )
2023-02-23 22:03:55 -08:00
uga-rosa
2257c3e367
feat: allow to pass extra opts to vim.keymap.set()
2023-02-06 02:19:47 +09:00
Steven Arcangeli
4436d6f41e
feat: enable cmp omni autocomplete in vim.ui.input ( #55 )
2022-12-12 21:44:56 -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
Steven Arcangeli
202bcf6bdb
fix!: update vim.ui.input to match nvim 0.9 API
...
https://github.com/neovim/neovim/pull/20883 changed the behavior of
vim.ui.input. The main change was that inputting no text now returns an
empty string instead of nil.
2022-11-09 02:21:46 +00: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
fbc798c34c
format: new version of stylua
2022-09-15 07:43:30 -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
f38eb33572
feat: more lazy loading for faster startup
2022-08-28 10:48:05 -07:00
Steven Arcangeli
232b6b3021
fix: only schedule_wrap when necessary ( #58 )
2022-08-28 10:18:01 -07:00
Steven Arcangeli
be2ef16ddb
fix: change default cursor-relative row/col to 0/0
...
Since the default anchor is SW, the previous default of 1/1 lead to the
text under the cursor being occluded.
2022-08-28 10:04:57 -07:00
Steven Arcangeli
96b09a0e3c
fix(input): lua function completion
2022-08-23 08:41:21 -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
Michael Benford
28cb494b61
feat(input): add start_in_insert option
...
Add a new option, start_in_insert, that defaults to true and controls
whether the input will start in insert or normal mode.
2022-07-20 17:26:40 -03:00
Steven Arcangeli
1e60c07ae9
format: apply new stylua formatting
2022-07-14 23:37:29 +00:00
Steven Arcangeli
fb4637995e
feat(input): support cancelreturn
2022-07-14 00:27:59 -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