Commit Graph

548 Commits

Author SHA1 Message Date
hrsh7th
703e915b7f Improve keymapping handling 2022-01-16 00:37:28 +09:00
hrsh7th
243d5f4a12 Fix expression resolving timing 2022-01-15 22:56:01 +09:00
hrsh7th
ec972710d3 Solve expression manually 2022-01-15 22:53:10 +09:00
hrsh7th
2ed0cdab36 Revert expr mapping handling 2022-01-15 20:45:21 +09:00
hrsh7th
76d92fca64 Fix cmdline completion redraw 2022-01-15 20:25:34 +09:00
hrsh7th
9f3440e765 Add comments 2022-01-15 19:50:19 +09:00
hrsh7th
008de7eb8a Avoid expr mapping message (#738)
* Avoid display message by register mapping

* Escape to json

* Improve tests

* fmt

* lint

* Fix evacuate condition

* Default silent

* fallback mapping should be silent by default

* Support legacy nvim
2022-01-15 19:18:04 +09:00
hrsh7th
098182e2c2 Fix #734 2022-01-15 18:56:29 +09:00
hrsh7th
bce1b2d780 Fix expr keymap handling 2022-01-14 18:45:28 +09:00
hrsh7th
614e00de24 Use utf-16 at this time 2022-01-13 23:12:18 +09:00
hrsh7th
f798855990 Fix offset encoding enum 2022-01-13 22:48:11 +09:00
hrsh7th
474e716e3d Speficy offset encoding 2022-01-13 21:46:03 +09:00
hrsh7th
ce0a3581e0 Improve word creation 2022-01-12 01:19:01 +09:00
hrsh7th
5ddf3732c5 Fix #721 2022-01-11 18:47:21 +09:00
hrsh7th
96c392dee3 Improve tests 2022-01-11 12:24:44 +09:00
hrsh7th
d6aaea47f4 Improve keymap handling (#720)
* Improve keymap handling

* Simplify

* Fix tests

* Fix callback no expr mapping

* Rename functions

* Use manual key conversion logic

* fmt
2022-01-11 02:18:09 +09:00
hrsh7th
ef5bdb43fa Improve redraw in search mode 2022-01-10 23:52:23 +09:00
hrsh7th
21456a109e fmt/test 2022-01-10 23:01:47 +09:00
hrsh7th
dff06958a7 Fix #716 2022-01-10 22:57:58 +09:00
hrsh7th
e0cfbbbaa8 Re-fix flickering 2022-01-10 22:39:58 +09:00
hrsh7th
89643cc287 Fix hlsearch
Fix https://github.com/hrsh7th/cmp-cmdline/issues/29#issuecomment-1008821502
2022-01-10 22:06:57 +09:00
hrsh7th
3f7b7b258a Add complete_done event and improved the recently_used sorter.
Fix #708
2022-01-08 13:38:55 +09:00
hrsh7th
a4f83fd839 Fix #589 2022-01-08 13:33:53 +09:00
hrsh7th
5533c352c6 Fix #699 Fix #705 Fix #698 2022-01-07 01:27:50 +09:00
hrsh7th
796f925915 Fix #703 2022-01-07 00:38:42 +09:00
xna00
1b94aacada Correct the description of functions (#697) 2022-01-02 12:44:42 +09:00
ap29600
eca04af4f8 handle nil value accessing CompletionItemKind (#690)
this prevents error messages from polluting the screen while using [ols](https://github.com/DanielGavin/ols) for autocompletion.
2021-12-31 01:07:02 +09:00
hrsh7th
d0f2ce460b Fix #615 2021-12-30 22:24:40 +09:00
hrsh7th
5cf5576ceb Fix #683 2021-12-30 22:23:17 +09:00
max397574
966dfdc402 add function to check if in comment (#676)
* feat(utils): added function to check if in comment

* moved functions into config.context and generalized

* feat(configs.context): added annotations
2021-12-29 19:48:26 +09:00
Dmytro Meleshko
b9edce7214 Add the snippet indicator for items with Snippet kind (#677) 2021-12-29 03:17:22 +09:00
Daniel Steinberg
4a19645374 Use a default zindex of 50 for documentation (#661)
This matches the default zindex for floating windows.
2021-12-21 10:52:43 +09:00
Dmytro Meleshko
9c07c2d1c5 Fix vim.fn.complete being constantly called (#654) 2021-12-20 14:54:16 +09:00
hrsh7th
da4c071f6b Fix #648 2021-12-14 22:41:45 +09:00
hrsh7th
91b6f503c1 Fix #582 2021-12-14 22:12:00 +09:00
hrsh7th
47d7cfc06a Fix #640 2021-12-14 17:46:31 +09:00
hrsh7th
b903545950 Fix #646
Resolve all properties by default
2021-12-14 14:22:17 +09:00
hrsh7th
49de058222 Fix #637 2021-12-14 13:59:03 +09:00
Dmytro Meleshko
727ddee59e Fix rendering of wide characters in the custom completion window (#641) 2021-12-13 13:05:55 +09:00
hrsh7th
edc2a503ee Fix #610 2021-12-05 18:22:03 +09:00
hrsh7th
7960dad502 fmt 2021-12-02 16:10:35 +09:00
hrsh7th
c2652f0ac0 Implement #349 2021-12-02 15:56:42 +09:00
hrsh7th
d17d41bdbd Fix #595 2021-12-01 20:46:34 +09:00
hrsh7th
a61c36a639 fmt 2021-12-01 15:03:59 +09:00
hrsh7th
f2f9a3325c Use vim.lsp.util.apply_text_edits instead of vim-vital-vs 2021-12-01 14:17:16 +09:00
Iron-E
ed000eb3d4 fix: default highlights overriding existing highlights (#591)
`highlight! default` overrides the existing highlight in order to set a
default link. So any highlight group that exists before will be wiped
over.
2021-11-30 13:29:02 +09:00
hrsh7th
593a6345de Implement kind highlights (#584)
* Implement kind highlights

* Fix link
2021-11-27 19:20:44 +09:00
hrsh7th
7b744e0589 Fix multibyte chars 2021-11-27 18:52:57 +09:00
Lyude
a86017117b Fire change events when selecting different items with native menu completion (#514)
Previously we didn't do this, which resulted in the documentation window
not being shown when switching through different completion items. Fix
this by firing the change event in select_next_item and select_prev_item.
2021-11-27 17:43:40 +09:00
hrsh7th
2e4270d028 Improve incomplete handling 2021-11-24 12:57:04 +09:00