Commit Graph

372 Commits

Author SHA1 Message Date
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
hrsh7th
ac476e05df Remove misc.readonly
Fix #571
2021-11-23 23:22:22 +09:00
hrsh7th
6fa7681812 Fix #321 2021-11-23 22:34:47 +09:00
hrsh7th
1944b46336 Allow to take the full SourceConfig from source API (#561)
* - SourceConfig.opts -> SourceConfig.option
- Add SourceConfig.trigger_characters
- Allow accessing full SourceConfig from source

* fmt&lint
2021-11-23 21:17:03 +09:00
hrsh7th
ea10d5bd2f Normalize keymapping configuration
Fix #475
Fix #570
Fix #533
2021-11-23 20:58:04 +09:00
hrsh7th
9b5d64d906 Fix #567 2021-11-23 19:37:25 +09:00
hrsh7th
876dd1a427 Fix #563 2021-11-23 19:29:01 +09:00
hrsh7th
f15be9e3ec Fix #559 2021-11-22 17:49:03 +09:00
hrsh7th
1c7f73aa4a Improve first display 2021-11-19 16:56:52 +09:00
Jonas Strittmatter
c2a9e0ccaa Fix possible nil argument to string.byte (#550) 2021-11-18 18:57:24 +09:00
hrsh7th
56ad7c9158 Rename type as cmdtype 2021-11-18 03:04:15 +09:00
hrsh7th
83a328c876 Improve completion reset handling 2021-11-18 02:54:27 +09:00
hrsh7th
286b9f78d1 Refactor get_active_entry and core.filter (#535)
* Refactor get_active_entry and core.filter

* Refactor source.lua
2021-11-17 22:38:56 +09:00
Lukas Reineke
17d57f96cc Add reason to complete function (#529)
fix #528
2021-11-17 01:17:58 +09:00
hrsh7th
4d800fbcab Fix cmdline screen cursor 2021-11-16 13:42:38 +09:00
hrsh7th
3e5ee9c789 Don't feed <C-f> manually but check auto-indentation 2021-11-16 04:16:37 +09:00
hrsh7th
1cfe2f7dfd Fix #526 2021-11-15 21:22:44 +09:00
hrsh7th
2de40ccf49 Fix #520 2021-11-15 14:26:50 +09:00
hrsh7th
05f4f8581c cosmetic changes 2021-11-15 13:15:56 +09:00
hrsh7th
0f743f75ea fmt 2021-11-15 13:12:16 +09:00
hrsh7th
3a2afb3cae Add cmdline expansion test 2021-11-15 13:11:42 +09:00
hrsh7th
c194a3dbba Add tests 2021-11-15 12:44:41 +09:00
hrsh7th
753f5b7c92 Fix #516 (#517)
* Fix #516

* Fix

* Fix and tests

* fmt lint
2021-11-14 02:47:31 +09:00
hrsh7th
e61f7c5acc Fix #513 2021-11-13 18:27:58 +09:00
hrsh7th
b3ee713d9b Fix cmdline confirmation bug 2021-11-10 14:12:28 +09:00
hrsh7th
6071062289 Fix #504 2021-11-10 04:28:32 +09:00
Dmytro Meleshko
faaf1c9629 Handle block visual/select modes, refactor mode handling (#498) 2021-11-09 19:41:16 +09:00