Commit Graph

241 Commits

Author SHA1 Message Date
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
Steven Arcangeli 502d5d4f28
Merge pull request #63 from qRoC/master
Add idx to codeaction selector
2022-09-15 16:40:29 +02: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 d98769dfc2
Merge pull request #51 from stevearc/stevearc-keymaps
config options for setting keymaps
2022-07-28 21:32:51 -07:00
Github Actions 34220dce61 [docgen] Update README.md
skip-checks: true
2022-07-29 04:27:24 +00:00
Steven Arcangeli b1c08146ee feat: expose mappings to user via config 2022-07-28 21:27:06 -07:00
Steven Arcangeli 4466fd9836 ci: don't run duplicate tests on pull requests 2022-07-28 08:03:31 -07:00
Steven Arcangeli 99a6c531b2 ci: only run tests on nvim 0.7 and up 2022-07-28 08:00:51 -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 5915d56f89 doc: dropping support for Neovim < 0.7 2022-07-28 07:36:18 -07:00
Github Actions e9d0de4470 [docgen] Update README.md
skip-checks: true
2022-07-21 05:49:20 +00:00
Steven Arcangeli 9795bd71c9
Merge pull request #49 from mbenford/start-in-normal-mode
Add start_in_insert option
2022-07-20 22:49:07 -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 af179837e1 doc: add a section to the README about highlight groups 2022-06-07 19:05:24 -07:00
Steven Arcangeli d394a2591c fix: bad nui parameter in last commit (#45) 2022-06-07 08:04:09 -07:00
Github Actions 55ce0400b2 [docgen] Update README.md
skip-checks: true
2022-06-05 02:11:05 +00:00
Steven Arcangeli a59218e110 feat(select)(nui): add more configuration options 2022-06-04 19:10:47 -07:00
Steven Arcangeli 1706d00209
Merge pull request #44 from Weypare/original-select
fix(select): use original vim.ui.select if enabled is false
2022-06-01 08:29:56 -07:00
Andrey Avramenko 4bd4167a77 fix(select): use original vim.ui.select if enabled is false 2022-06-01 17:59:28 +03:00
Steven Arcangeli 9bb33efe9c ci: run tests on neovim 0.7.0 2022-05-30 16:25:11 -07:00
Github Actions 89dd7a5a5d [docgen] Update README.md
skip-checks: true
2022-05-30 23:25:05 +00:00
Steven Arcangeli 0087ad7f7d
Merge pull request #41 from axieax/trim-prompt-colon
feat: trim trailing colon from prompt
2022-05-30 16:24:55 -07: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
Steven Arcangeli 55e4ceae81
Merge pull request #39 from lervag/patch-1
Use fzf#wrap to respect user option
2022-05-10 20:12:31 -07:00
Karl Yngve Lervåg dec32938b8
Use fzf#wrap to respect user option
`fzf.vim` provides both `fzf#run` and `fzf#wrap`. The latter function is used to force `fzf#run` to respect user options defined in e.g. `g:fzf_layout`. I believe it is better to use this so that dressings fzf behaviour respects user options.

See `:help fzf#wrap` for more details.
2022-05-10 22:15:36 +02:00
Steven Arcangeli a476efd3f3 fix(input): disable mini completion (#38) 2022-05-01 13:50:30 -07:00
Steven Arcangeli f68a91a281 fix: stack overflow in telescope (#36) 2022-04-22 21:51:20 -07:00
Github Actions cad08fac5e [docgen] Update README.md
skip-checks: true
2022-03-31 15:40:47 +00:00
Steven Arcangeli 2f8a001ae5 fix(input): change the default_prompt to Input:
The unicode arrow makes sense when using the prompt buffer, but not so
much if the prompt is going to be a window title instead.
2022-03-31 08:24:47 -07:00
Steven Arcangeli e14e35a9d4 fix!: drop specialized text highlight groups (#30)
Removing DressingInputText and DressingSelectText highlight groups that
were added for #8. I added them before I learned about winhighlight, and
it turns out that winhighlight is the better way to do this. Previously
I was using `nvim_buf_add_highlight` to directly add the highlight
group, but that has multiple downsides (can't highlight bg of regions
with no text, overrides other relevate highlight groups e.g.
CursorLine). None of that is needed because Neovim will be setting the
highlight group of this text to NormalFloat, and if the user wants to
customize it we already expose an easy option in config to do
`winhighlight = "NormalFloat:MyCustomHighlightGroup"`.
2022-03-29 20:11:57 -07:00
Steven Arcangeli 31f12fff6e feat: allow get_config to modify enabled (#29) 2022-03-23 18:46:21 -07:00
Steven Arcangeli 8c42b8f854 fix(input): set nowrap on window (#28) 2022-03-22 22:38:58 -07:00
Github Actions 65f73d57ce [docgen] Update README.md
skip-checks: true
2022-03-23 05:10:45 +00:00
Steven Arcangeli 079e5d7df8 feat(input): option prompt_align (#27) 2022-03-22 22:10:16 -07:00
Steven Arcangeli 96552c9199 fix: hide deprecation notice when option not used (#26) 2022-03-17 10:01:53 -07:00